
- package: tis-python34-32
- name: Python 3.4.x (32-bits)
- version: 3.4.16789-2
- categories: Development
- maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
- editor: Python Software Foundation
- licence: Python Software Foundation License
- locale: all
- target_os: windows
- architecture: all
- signature_date:
- size: 26.46 Mo
- homepage : https://www.python.org/
- depends:
- conflicts :
package : tis-python34-32
version : 3.4.16789-2
architecture : all
section : base
priority : optional
name : Python 3.4.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-python34
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.0
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 : Python jest interpretowanym, wysokopoziomowym językiem programowania ogólnego przeznaczenia
description_de : Python ist eine interpretierte Hochsprachenprogrammiersprache für allgemeine Zwecke
description_es : Python es un lenguaje de programación interpretado, de alto nivel y de propósito general
description_pt : Python é uma linguagem de programação interpretada, de alto nível, de uso geral
description_it : Python è un linguaggio di programmazione interpretato, di alto livello e di uso generale
description_nl : Python is een geïnterpreteerde, algemene programmeertaal op hoog niveau
description_ru : Python - интерпретируемый, высокоуровневый язык программирования общего назначения
audit_schedule :
editor : Python Software Foundation
keywords : python,3,3.4,programming,language,interpreted,py,.py,code,coding,language,object-oriented
licence : Python Software Foundation License
homepage : https://www.python.org/
package_uuid : cc755843-8d60-4736-8fdf-c41ab2dda789
valid_from :
valid_until :
forced_install_on :
changelog : https://www.python.org/downloads/release/python-344/
min_os_version : 5.0
max_os_version :
icon_sha256sum : b55b23fa81945c6cd4c2f4f114188aa9f8f3d0c3cbb9fb353b2803ffbb67b43b
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : M8QygUYk1O8XwhGwRerlHgra+X/Kv1EDmtXBhc79SwkZ5W4C/VJ53b7eC9lVNfaN+dYx0+9UxZuYW/0SEJqMv1BYe/ESvBnTb7WeCupVXTk0z5wnTirx9l0qq6RZAp+s4Wfk3AHvjLA+HViFwUbzivtkApQmszy6jhKdTz56Nu+b2vcCnoccegg7JdJ1j5YAwhxxFltaSyjoKh2NSN+UZXoRONbdZQO9ZLQVR+K7k3mNDUlmgXqQVu5sHuwCP1YVo3Ejf9gqTqwnZMaEanoyjBufdhpLs6wMDTsBi2fhoDRWuYcQP2YQofdw5Zp2nn0xw5lZm029TdO2mKrDVc0AEA==
signature_date : 2022-08-09T17:07:38.424513
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,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,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
# -*- coding: utf-8 -*-
from setuphelpers import *
# Installation procedure: https://docs.python.org/3/using/windows.html
# Declaring specific app values (TO CHANGE)
app_dir_string = makepath(programfiles32, "Python%s-32") # Make sure to use programfiles32 for 32-Bits version and programfiles64 for 64-Bits version
whl_dir = "whl"
# Forced version :
def install():
# Specific app values
package_version = control.get_software_version()
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
install_msi_if_needed(
glob.glob("python*.msi")[0],
properties={"ALLUSERS": 1, "ADDLOCAL": "ALL", "TargetDir": '"%s"' % app_dir},
min_version=package_version,
)
def uninstall():
# Specific app values
package_version = control.get_software_version()
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"))
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
url_dl = "https://www.python.org/ftp/python/3.4.4/python-3.4.4.msi"
latest_bin = "python-3.4.4.msi"
version = "3.4.4"
whl_dir = "whl"
def update_package():
print("Download/Update package content from upstream binary sources")
package_updated = False
# 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)
# Getting latest Python PIP
for bs_search in bs_find_all(
"https://pypi.org/project/pip/#files", "a", proxies=proxy, timeout=10, user_agent="Mozilla/5.0 (Windows NT 6.1; Win64; x64)"
):
if "py3-none-any.whl" in bs_search.text:
url_dl_pip = bs_search["href"]
latest_bin_pip = bs_search["href"].split("/")[-1]
break
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)
version = get_msi_properties(latest_bin)["ProductVersion"]
# Changing version of the package
if Version(version) > Version(control.get_software_version()):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
package_updated = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.set_software_version(version)
control.save_control_to_wapt()
# Deleting outdated binaries
remove_outdated_binaries(version)
# Validating or not update-package-sources
return package_updated
7ddff86f4fbe5cd570b13980a61ae19dd63dc92441e730f65e67fb3db6ba8db5 : setup.py
b61a374b5bc40a6e982426aede40c9b5a08ff20e640f5b56977f4f91fed1e39a : whl/pip-22.2.2-py3-none-any.whl
46c8f9f63cf02987e8bf23934b2f471e1868b24748c5bb551efcf4863b43ca6c : python-3.4.4.msi
c14e7987631bf9a8f1c54887ee7d9269604938186de757ed5481766ad9629866 : update_package.py
b55b23fa81945c6cd4c2f4f114188aa9f8f3d0c3cbb9fb353b2803ffbb67b43b : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
8c6a29a4ad06629f244b755bccf90909a60b9b027b20291ff19aefa7d318900c : luti.json
268637e8d336d3bb6fbe908aec3fb17a80bf14434a993f4fb57c09b5b5ce1490 : WAPT/control