tis-python34-32
3.4.4-3
Python is an interpreted, high-level, general-purpose programming language
60 downloads

Description
- package : tis-python34-32
- version : 3.4.4-3
- architecture : all
- categories : Development
- maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
- description : Python is an interpreted, high-level, general-purpose programming language
- locale :
- target_os : windows
- min_os_version : 5.0
- max_os_version :
- min_wapt_version : 1.7
- sources : https://www.python.org/downloads/windows/
- installed_size :
- impacted_process :
- description_fr : Python est un langage de programmation interprété, multi-paradigme et multiplateformes
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor : Python Software Foundation
- licence : Python Software Foundation License
- signature_date : 2020-11-23T10:45:24.788601
- Homepage : https://www.python.org/
- Depends :
- Conflicts :
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
import requests
import platform
try:
import bs4 as BeautifulSoup
except:
import BeautifulSoup
uninstallkey = []
# Installation procedure: https://docs.python.org/3/using/windows.html
# Declaring specific app values (TO CHANGE)
bin_name_string = 'python-%s.msi'
app_dir_name = 'Python%s-32'
app_dir_string = makepath(programfiles32,app_dir_name) # Make sure to use programfiles32 for 32-Bits version and programfiles64 for 64-Bits version
whl_dir = 'whl'
# Forced version :
version = '3.4.4'
url_dl = 'https://www.python.org/ftp/python/3.4.4/python-3.4.4.msi'
latest_bin = 'python-3.4.4.msi'
def install():
# Specific app values
package_version = control.version.split('-',1)[0]
package_version_split = package_version.split('.')
short_version = '%s%s' % (package_version_split[0],package_version_split[1])
bin_name = bin_name_string % package_version
app_dir = app_dir_string % short_version
silent_args_string = {'ALLUSERS':1,'ADDLOCAL':'ALL','TargetDir':'"%s"' % app_dir}
whl_dir_path = makepath(basedir,whl_dir)
# Installing the package
print("Installing Python %s to: %s" % (package_version,app_dir))
install_msi_if_needed(bin_name
,properties=silent_args_string
,min_version=package_version)
def uninstall():
# Specific app values
package_version = control.version.split('-',1)[0]
package_version_split = package_version.split('.')
short_version = '%s%s' % (package_version_split[0],package_version_split[1])
app_dir = app_dir_string % short_version
# Removing remaining files of this Python version
try:
if isdir(app_dir):
print("Removing remaining folder: %s" % app_dir)
remove_tree(app_dir)
except:
print("Unable to remove Python %s remaining folder: %s" % (package_version,app_dir))
# Removing sys env variables
remove_from_system_path(app_dir)
remove_from_system_path(makepath(app_dir,'Scripts'))
def update_package():
print('Download/Update package content from upstream binary sources')
# Getting proxy informations from WAPT settings
proxy = {}
if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
if proxywapt :
proxy = {'http':proxywapt,'https':proxywapt}
print('Download url is: ' + url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print('Downloading: ' + latest_bin)
wget(url_dl,latest_bin,proxies=proxy)
# Changing version of the package
control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
control.save_control_to_wapt()
print('Changing version to: %s in WAPT\\control' % control.version)
# Getting latest Python PIP
page = requests.get('https://pypi.org/project/pip/#files',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'}).text
bs = BeautifulSoup.BeautifulSoup(page,features="html.parser")
url_dl_pip = bs.find('span',{'class':'table__mobile-label'}).find_next()['href']
latest_bin_pip = url_dl_pip.split('/')[-1]
if not isfile(latest_bin_pip):
print('Downloading: ' + latest_bin_pip)
wget(url_dl_pip,makepath(whl_dir,latest_bin_pip),proxies=proxy)
# Deleting outdated binaries
for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi') or glob.glob('*.zip'):
if bin_in_dir != latest_bin :
print('Outdated binary: ' + bin_in_dir + ' Deleted')
remove_file(bin_in_dir)
Changelog
Changelog software url : https://www.python.org/downloads/release/python-344/
No changelog
[["python-3.4.4.msi","46c8f9f63cf02987e8bf23934b2f471e1868b24748c5bb551efcf4863b43ca6c"],["setup.py","9848026f508fd995d2c26ce19d47cb8ac30a32e3512a063c1268ff91a1fddcbb"],["WAPT/icon.png","b55b23fa81945c6cd4c2f4f114188aa9f8f3d0c3cbb9fb353b2803ffbb67b43b"],["whl/pip-20.2.4-py2.py3-none-any.whl","51f1c7514530bd5c145d8f13ed936ad6b8bfcb8cf74e10403d0890bc986f0033"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","1decb535f43c64cc6649ab92c14ad9b83033ff33f5d2534fae6e2df2fec6a645"]]