
tis-wapt-python310-relocatable
Silent install package for tis-wapt-python310-relocatable
3.10.18-38
- package: tis-wapt-python310-relocatable
- version: 3.10.18-38
- maintainer: sfonteneau
- locale: all
- target_os: windows
- architecture: x86
- signature_date:
- size: 8.52 Mo
package : tis-wapt-python310-relocatable
version : 3.10.18-38
architecture : x86
section : base
priority : optional
name :
categories :
maintainer : sfonteneau
description : Package for tis-python-3.10-tranquilit
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.0
sources :
installed_size :
impacted_process :
description_fr : Paquet pour tis-python-3.10-tranquilit
description_pl : Pakiet dla tis-python-3.10-tranquilit
description_de : Paket für tis-python-3.10-tranquilit
description_es : Paquete para tis-python-3.10-tranquilit
description_pt : Pacote para tis-python-3.10-tranquilit
description_it : Pacchetto per tis-python-3.10-tranquilit
description_nl : Pakket voor tis-python-3.10-tranquilit
description_ru : Пакет для tis-python-3.10-tranquilit
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : e76a4c72-4716-4832-8fbc-353fd5f296e3
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : b55b23fa81945c6cd4c2f4f114188aa9f8f3d0c3cbb9fb353b2803ffbb67b43b
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-07-27T11:10:34.000000
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
signature : rpR2w69MkVd4q9UNP00g0oB/ZkNA8wJRmOFj2tsWFhfeeJ8iN2mGNKeYRql4sJwMu/VGKGgMDoTM51DGQWN7qtgEJlul/e4tmnBvBgMxfJs4DlpUCahX2ae7FpT3X9uZ+VKzvkzD8X/ZoB7ApQjhZpG0q6xxWRD2LZA+HUKjUPoLIUn8E5EViUwcDIQp16dGK84gJbQL0U8E+YzgHwjRihkkJA1la2Wd/zThd+/g5ug4MO23hSR1RulM046Es6sD1imkcQ4P90AozJTjAQPc/SyDryA7jparswekxqeIetmqYk7mHhURBapKtN8bdmNpIJPe57UZF2kcYTRp69hJLA==
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
unzip('Python-windows_amd64-x86.zip',r'c:\pythonwapt-x86')
def uninstall():
pass
# -*- coding: utf-8 -*-
from setupdevhelpers import *
import os
import shutil
import os
import glob
import distro
import platform
python_name_file = str(platform.system().lower() + '_' + platform.machine().lower() + '_' + '_'.join([u.split('.')[0] for u in distro.linux_distribution(False) if u][:2])).strip('_')
def update_package():
colum1 = bs_find_all('https://www.python.org/downloads/source/','div','class',"column")[0].findAll('li')
versionpython = None
for entry in colum1:
if versionpython:
continue
if not hasattr(entry,'contents'):
continue
for i in entry.contents :
if not hasattr(i,'contents'):
continue
v = [t for t in i.contents if str(t).startswith('Python 3.10')]
if v:
versionpython = v[0].split(' ')[1]
break
openssl_version = '3.5.1'
#Download and extract python source
wget(f'https://www.python.org/ftp/python/{versionpython}/Python-{versionpython}.tgz',f'Python-{versionpython}.tgz')
unzip_with_7zip(f'Python-{versionpython}.tgz',f'Python-{versionpython}-tar')
unzip_with_7zip(rf'Python-{versionpython}-tar\Python-{versionpython}.tar','.')
remove_tree(f'Python-{versionpython}-tar')
remove_file(f'Python-{versionpython}.tgz')
#Download and extract openssl source
wget(rf'https://github.com/openssl/openssl/releases/download/openssl-{openssl_version}/openssl-{openssl_version}.tar.gz',rf'openssl-{openssl_version}.tar.gz')
unzip_with_7zip(rf'openssl-{openssl_version}.tar.gz',rf'openssl-{openssl_version}-tar')
unzip_with_7zip(rf'openssl-{openssl_version}-tar\openssl-{openssl_version}.tar','.')
remove_tree(rf'openssl-{openssl_version}-tar')
remove_file(rf'openssl-{openssl_version}.tar.gz')
if not isfile(r'C:\Program Files\NASM\nasm.exe'):
error(r'C:\Program Files\NASM\nasm.exe not found')
run(rf'Python-{versionpython}\PCbuild\get_externals.bat',timeout=5000)
with open(rf'openssl-{openssl_version}\Configurations\60-custom.conf','w') as f:
f.write(data_custom)
add_to_system_path(r'C:\Program Files\NASM')
#run(rf'cd openssl-{openssl_version} & set path=C:\Program Files\NASM;%path% &"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat" &"C:\Strawberry\perl\bin\perl.exe" configure VC-WIN64A-rtt & nmake',timeout=1200)
run(rf'cd openssl-{openssl_version} & set path=C:\Program Files\NASM;%path% &"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars32.bat" &"C:\Strawberry\perl\bin\perl.exe" configure VC-WIN32-rtt & nmake',timeout=5000)
name_openssl_folder = glob.glob(rf'Python-{versionpython}\externals\openssl-bin-*')[0].split('\\')[-1]
shutil.move(rf'Python-{versionpython}\externals\{name_openssl_folder}\win32',rf'Python-{versionpython}\externals\{name_openssl_folder}\win32old')
shutil.move(rf'openssl-{openssl_version}',rf'Python-{versionpython}\externals\{name_openssl_folder}\win32')
filecopyto(rf'Python-{versionpython}\externals\{name_openssl_folder}\win32old\include\applink.c',rf'Python-{versionpython}\externals\{name_openssl_folder}\win32\include\applink.c')
with open(makepath(f'Python-{versionpython}','PCbuild','openssl.props'), 'r') as f:
data=f.read()
data = data.replace(r"<_DLLSuffix>-1_1</_DLLSuffix>",r"<_DLLSuffix>-3</_DLLSuffix>")
with open(makepath(f'Python-{versionpython}','PCbuild','openssl.props'), 'w') as f:
f.write(data)
run(rf'Python-{versionpython}\PCbuild\build.bat -p Win32 -t Rebuild',timeout=5000)
run(rf'"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\msbuild.exe" "%s\Python-{versionpython}\Tools\msi\make_zip.proj" /t:Build /p:OutputPath="%s"' % (basedir,basedir))
name_generate = glob.glob('*.zip')[0]
os.rename(name_generate,'Python-%s-x86.zip' % python_name_file)
remove_tree(f'Python-{versionpython}')
control.version = "%s-%s" % (Version(versionpython), control.version.split("-", 1)[-1])
control.save_control_to_wapt()
data_custom = r"""## -*- mode: perl; -*-
## Personal configuration targets
my %targets = (
"VC-WIN32-rtt" => {
inherit_from => [ "VC-WIN32" ],
cflags => sub{my $v=pop; $v=~ s/\/MD/\/MT/ig; return $v},
lflags => "/nologo /release",
},
"VC-WIN64A-rtt" => {
inherit_from => [ "VC-WIN64A" ],
cflags => sub{my $v=pop; $v=~ s/\/MD/\/MT/ig; return $v},
lflags => "/nologo /release",
},
);"""
c8b557f1c11e742ab823abd66d49b9b604d6ed879f7b013f42dd977ccfcb67b5 : Python-windows_amd64-x86.zip
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
d84fb4fbb5c76136bb99f09273c17813efbb06a41809f9fb6f02ac0137ac6e49 : WAPT/control
b55b23fa81945c6cd4c2f4f114188aa9f8f3d0c3cbb9fb353b2803ffbb67b43b : WAPT/icon.png
2cc17bb3bf97708860aa23440a8e7e5e1c993c64befb1ba3ccc7845efc522c49 : luti.json
4c0a76cc205d327705708bfd829cc36e3dedb49fe87298baae8c20d71c88524c : setup.py
2b5b5284ed51d58b37ab65e241a4c06b4cb4f74ae872a99cd9a610fe0b660d16 : update_package.py