tis-python36-32
3.6.8-19
Python est un langage de programmation interprété, multi-paradigme et multiplateformes
1897 téléchargements
Télécharger
Voir l'analyse de VirusTotal

- package : tis-python36-32
- name : Python 3.6.x (32-bits)
- version : 3.6.8-19
- categories : Development
- maintainer : WAPT Team, Tranquil IT, Jimmy PELÉ
- editor : Python Software Foundation
- licence : Python Software Foundation License
- locale :
- target_os : windows
- impacted_process :
- architecture : all
- signature_date : 2020-09-23 15:39
- size : 32.01 Mo
- homepage : https://www.python.org/
- depends :
- conflicts :
package : tis-python36-32
version : 3.6.8-19
architecture : all
section : base
priority : optional
name : Python 3.6.x (32-bits)
categories : Development
maintainer : WAPT Team, Tranquil IT, Jimmy PELÉ
description : Python is an interpreted, high-level, general-purpose programming language
depends : tis-vcredist
conflicts : tis-python36
maturity : PROD
locale :
target_os : windows
min_os_version : 6.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 :
audit_schedule :
editor : Python Software Foundation
keywords : python,3,3.6,programming,language,interpreted,py,.py,code,coding,language,object-oriented
licence : Python Software Foundation License
homepage : https://www.python.org/
package_uuid : 4d880e1c-1022-476b-8acd-c91ac6168c45
valid_from :
valid_until :
forced_install_on :
changelog : https://docs.python.org/3/whatsnew/changelog.html
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : nZIAGgsOceXsH7ZqFy/EID+lFNJScIgvt+p8R6C25jQ8WhddkIhBcjp60mMKjeVJ/k5ZhPy55W3LILZNVJKR3CHLpRD50OTsx/Rc/JNVoijBS/p+B0vBqpagq+4nEE9L+5OXQR0bXCFf680fSetVuDVS/JgVLHI2KH9tClNlPpD3Cp10namKPwOV4VgegfX1qvY75jcj6ftSHeig7/xTIYO4+062Z8aU9024oFrSRYFWhYmEOuTgREbscSEfBp5FFup8M8qJtmW8fiz8dmgvzvvStUEJ3upCvP47jkrphXekSDHji0FqfynmG8cCctXEaCnOeKt1geYg3i3KDYFPlw==
signature_date : 2020-09-23T15:39:03.070155
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,signer,signer_fingerprint,signature_date,signed_attributes
# -*- 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.exe'
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
silent_args_string = '/quiet InstallAllUsers=1 PrependPath=1 AssociateFiles=1 Include_launcher=0 InstallLauncherAllUsers=0 TargetDir="%s"' % app_dir_string
silent_uninst_args = '/uninstall /quiet'
app_uninstallkey = ''
whl_dir = 'whl'
# Forced version :
url_dl = 'https://www.python.org/ftp/python/3.6.8/python-3.6.8.exe'
latest_bin = 'python-3.6.8.exe'
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
app_installer_path = makepath(app_dir,bin_name)
whl_dir_path = makepath(basedir,whl_dir)
# Installing the package
print("Installing Python %s to: %s" % (package_version,app_dir))
install_exe_if_needed(bin_name
,silentflags=silent_args_string % short_version
,key=app_uninstallkey
,min_version=package_version)
# Copying installer for future uninstall
if not isfile(app_installer_path):
filecopyto(bin_name,app_installer_path)
# Prevent interaction with waptpython (please make sure that the following code require the defined path)
if "PYTHONHOME" in os.environ.keys():
del os.environ["PYTHONHOME"]
if "PYTHONPATH" in os.environ.keys():
del os.environ["PYTHONPATH"]
os.environ["PYTHONPATH"] = app_dir
os.environ["PYTHONHOME"] = app_dir
# Installing Python Wheels
for whl in glob.glob(r'%s\*.whl' % whl_dir_path):
print('Installing Python Wheel: %s' % whl)
run(r'"%s\Scripts\easy_install.exe" "%s"' % (app_dir,whl))
# Rolling back WAPT Python Pathes (will ensure that WAPT install complete correctly)
if "PYTHONHOME" in os.environ.keys():
del os.environ["PYTHONHOME"]
if "PYTHONPATH" in os.environ.keys():
del os.environ["PYTHONPATH"]
os.environ["PYTHONHOME"] = makepath(programfiles32, 'wapt')
os.environ["PYTHONPATH"] = makepath(programfiles32, 'wapt')
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])
bin_name = bin_name_string % package_version
app_dir = app_dir_string % short_version
app_installer_path = makepath(app_dir,bin_name)
# Uninstalling the package
run('"%s" %s' % (app_installer_path,silent_uninst_args))
# 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))
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)
# Checking version from file
version = get_file_properties(latest_bin)['ProductName'].split(' (')[0].split(' ')[-1]
# 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)
89871d432bc06e4630d7b64cb1a8451e53c80e68de29029976b12aad7dbfa5a0 : python-3.6.8.exe
d19a4c0348628e6e2085e7dc39f43a74041b9f88f4b0b8521e61a8ae9bfc20b9 : setup.py
b55b23fa81945c6cd4c2f4f114188aa9f8f3d0c3cbb9fb353b2803ffbb67b43b : WAPT/icon.png
0f35d63b7245205f4060efe1982f5ea2196aa6e5b26c07669adcf800e2542026 : whl/pip-20.2.3-py2.py3-none-any.whl
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
288113cd7aa60c7dd2734ec9538aff7104e9c851948f8b4cdf00300d79903e9b : WAPT/control