ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python3.8/distutils/command/__pycache__/bdist_msi.cpython-38.opt-2.pyc
U

e5d߉@sddlZddlZddlmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZddlZdd	lmZmZmZdd
lmZmZmZmZGdddeZGd
ddeZdS)N)Command)remove_tree)get_python_version)
StrictVersion)DistutilsOptionError)get_platform)log)schemasequencetext)	DirectoryFeatureDialogadd_datac@sBeZdZddZddZdddZdd
dZdd
dZddZdS)PyDialogcOs>tj|f||jd}d|d}|dd||jddS)N$iHZ
BottomLiner)r__init__hlinew)selfargskwZrulerZbmwidthr3/usr/lib64/python3.8/distutils/command/bdist_msi.pyrs
zPyDialog.__init__c
Cs|ddddddd|dS)NTitle
@<z{\VerdanaBold10}%s)r)rtitlerrrr"#szPyDialog.titleBackc
Cs,|r
d}nd}||d|jddd|||S)Nr$8
pushbuttonrrr"nextnameactiveflagsrrrback*sz
PyDialog.backCancelc
Cs,|r
d}nd}||d|jddd|||S)Nr%r$i0r'r(r)r*r,rrrcancel5szPyDialog.cancelNextc
Cs,|r
d}nd}||d|jddd|||S)Nr%r$r'r(r)r*r,rrrr-@sz
PyDialog.nextc
Cs,||t|j|d|jdddd||S)Nr'r(r)r%)r+intrr)rr.r"r-ZxposrrrxbuttonKszPyDialog.xbuttonN)r#r$)r2r$)r4r$)	__name__
__module____qualname__rr"r1r3r-r8rrrrrs



rc@seZdZdZddddefdddd	d
ddd
g
ZddddgZddddddddddddddd d!d"d#d$d%gZd&Zd'd(Z	d)d*Z
d+d,Zd-d.Zd/d0Z
d1d2Zd3d4Zd5d6Zd7S)8	bdist_msiz7create a Microsoft Installer (.msi) binary distribution)z
bdist-dir=Nz1temporary directory for creating the distributionz
plat-name=pz;platform name to embed in generated filenames (default: %s))	keep-tempkzPkeep the pseudo-installation tree around after creating the distribution archive)ztarget-version=Nz6require a specific python version on the target system)no-target-compilecz/do not compile .py to .pyc on the target system)no-target-optimizeoz;do not compile .py to .pyo (optimized) on the target system)z	dist-dir=dz-directory to put final built distributions in)
skip-buildNz2skip rebuilding everything (for testing/debugging))zinstall-script=NzUbasename of installation script to be run after installation or before deinstallation)zpre-install-script=Nz{Fully qualified filename of a script to be run before any files are installed.  This script need not be in the distributionr>r@rBrEz2.0z2.1z2.2z2.3z2.4z2.5z2.6z2.7z2.8z2.9z3.0z3.1z3.2z3.3z3.4z3.5z3.6z3.7z3.8z3.9XcCsFd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
dS)Nr)	bdist_dir	plat_name	keep_tempZno_target_compileZno_target_optimizetarget_versiondist_dir
skip_buildinstall_scriptpre_install_scriptversions)rrrrinitialize_options}szbdist_msi.initialize_optionscCs|dd|jdkr2|dj}tj|d|_t}|jsN|j	
rN||_|jr|jg|_|js|j	
r|j|krt
d|fnt|j|_|ddd|jrt
d|jr|j	jD]}|jtj|krqqt
d|jd|_dS)	NZbdist)rLrLZmsizMtarget version can only be %s, or the '--skip-build' option must be specified)rKrK)rHrHz5the pre-install-script feature is not yet implementedz(install_script '%s' not found in scripts)Zset_undefined_optionsrGget_finalized_command
bdist_baseospathjoinrrJdistributionhas_ext_modulesrOrLrlistall_versionsrNrMZscriptsbasenameinstall_script_key)rrRZ
short_versionZscriptrrrfinalize_optionssH

zbdist_msi.finalize_optionscCsz|js|d|jddd}|j|_|j|_d|_|d}d|_d|_|j	r|j
}|spdtjdd}d	|j
|f}|d}tj|jd
||_td|j|tjdtj|jd|tjd=||j|j}||}tj|}tj|r"t||jj }|j!}	|	s<|j"}	|	sFd
}	|#}
dt$|
j%}|j}|j
r~d|j
|f}nd|}t&'|t(|t&)||	|_*t&+|j*t,d|
fg}
|j-p|j.}|r|
/d|f|j0r|
/d|j0f|
rt1|j*d|
|2|3|4|5|j*6t7|jdr^d|j
pJd|f}|jj8/||j9svt:|j|j;ddS)Nbuildinstallr$)Zreinit_subcommandsrinstall_libz%d.%dz.%s-%slibzinstalling to %sZPURELIBZUNKNOWNz%d.%d.%dzPython %s %sz	Python %sZDistVersionZ
ARPCONTACTZARPURLINFOABOUTProperty
dist_filesr<any)dry_run)<rLZrun_commandZreinitialize_commandrGprefixZwarn_dircompileoptimizerVrWrJsysversion_inforHrQrSrTrUZ
build_baseZ	build_librinfoZensure_finalizedinsertrunZmkpathrKget_fullnameget_installer_filenameabspathexistsunlinkmetadataauthorZ
maintainerZget_versionrversionmsilibZ
init_databaser	Zgen_uuiddbZ
add_tablesr
Zauthor_emailZmaintainer_emailappendZurlradd_find_python	add_filesadd_scriptsadd_uiCommithasattrrcrIrre)rr^r_rJZplat_specifierr]fullnameinstaller_namersrtruZsversionZproduct_nameZpropsZemailtuprrrrms










z
bdist_msi.runc
Cs|j}td}tj|j}t||d|dd}t|ddddddd}||d	fg}|j	|j
gD]t}d|}d|}	}
d}||j
krd
}d}
nd|}d}
t||	||d|
|d}t||||||
}||||fq`|i}|D]\}}}|g}|r|
}t|jD]}tj|j|}tj|rld
|||f}||}
t|||||
|}||n|js||j|d||kr||}||<||jkr|jrtd|d||_n*||}t|jd|||j|d|jfgqq|q||dS)NZ	distfiles	TARGETDIRZ	SourceDirPythonZ
Everythingrr$)Z	directoryzPython from another locationr`zPython %s from registryz%s|%szMultiple files with name %sz[#%s]Z
DuplicateFile)rwrvZCABrSrTrprGrr
rO
other_versionrxr}poplistdirZabsoluterUisdirZ
make_shortZ	componentZstart_componentZlogicalZadd_filerMr[rrZcommit)rrwZcabZrootdirrootfitemsrutargetr.defaultZdescr"leveldirseenZfeatureZtodofileZafileZshortZnewdirkeyrrrrz
sf





zbdist_msi.add_filescCs|d}|jD]j}d|}d|}d|}d|}d|}d|}d|}	d	|}
d
|}d|}tjrld}
nd
}
t|jd|d
|d|
f|d|d|
fgt|jd||f||fgt|jd|d|d|df|	d|d|df|
d|d|dfgt|jd|||f|	||df|
d|d
fgt|jd|||f|	||df|
d|d
fgt|jdd|dd|fg|d7}q
dS)Niz)SOFTWARE\Python\PythonCore\%s\InstallPathzpython.machine.zpython.user.zPYTHON.MACHINE.zPYTHON.USER.ZPythonFromMachineZPythonFromUserZ	PythonExerPYTHONr`Z
RegLocatorr$Z	AppSearchCustomActioni3[]z]\python.exeInstallExecuteSequenceInstallUISequenceZ	Conditionrrz
NOT TARGETDIR)rOrvZWin64rrw)rstartverZinstall_pathZmachine_regZuser_regZmachine_propZ	user_propZmachine_actionZuser_actionZ
exe_actionZtarget_dir_propexe_propZTyperrrryCs`zbdist_msi.add_find_pythonc
Cs|jrjd}|j|jgD]P}d|}d|}t|jd|d||jfgt|jd|d||fg|d7}q|jrtj	|j
d	}t|d
4}|dt|j}||
W5QRXW5QRXt|jdd
t|fgt|jddgt|jddgdS)Nizinstall_script.rr2rz&Python%s=3r$zpreinstall.batrzrem ="""
%1 %0
exit
"""
Binary
PreInstall)rr`rN)rz
NOT Installedi)rMrOrrrwr[rNrSrTrUrGopenwritereadrvr)rrrZinstall_actionrZscriptfnrZfinrrrr{ys6
	
"zbdist_msi.add_scriptscCs
|j}d}}d}d}d}d}d}d}	t|dd	d
ddd
dgt|dddddgt|ddddddgt|dtjt|dtjt|d||||||ddd}
|
d|
jddd d!|
jd"d#d d!|
d$d%d&d'd(d)d*|
d+d%d,d'd-d)d.|
j	dd"dd/}|
d0d1t|d2||||||ddd}|d3|jddd d!|jd"d#d d!|d$d%d&d'd(d)d4|d+d%d,d'd-d)d.|j	dd"dd/}|
d0d1t|d5||||||ddd}
|
d6|
jddd d!|
jd"d#d d!|
d7d%d8d'd-d)d.|
j	dd"dd/}|
d0d9t|d:||||d;|d<d<d<d=d>}|d?d%d@dAd%d)dB|d7d-dCdDd-d)dE|dFd-dGdHdddI|dJdKd-dLdHdMdNdOddd|jd1dPd1d/}|
d0d1|j	dPd<dPd/}|
d0dP|jd<d1d<d/}|
d0d<t|dQddRdHdSdT|dUdd}|dUddVdDdWddX|
dYdZd[d\d]dd^d
d0d_|
d`dad[d\d]ddbd
d0dc|
ddd d[d\d]dded
d0df|
dgdhd[d\d]dd"d
d0di|
djd\d[d\d]ddPd
d0dk|
dldmd[d\d]ddnd
d0do|
dpdqd[d\d]dd<d
d0drt|dsddRdtdud|d^d^d^}|dFdWd%dvdwddx|
dbd[dydzd{ddbd^}|
d0d1|
d^d|dydzd{dd^db}|
d0d9t|d}ddRdtdu||d9d9d9}|dFdWd%dvdwdd~|
d9ddydzd{dd9d}|
d0d1t|d||||||d"d"d"}|d7d%d&d'dd)d|d|dd%dd'd-d)d}|ddF|dd%dd'dwd)d}|ddF|jd#dd d!|j	ddd d!|d"d}|
ddst|d||||||ddd"}|d|dd%dwdd-dd|j|jddd d!|	dd"}d}|j
dd|d|j|jgD](}|d7}|j
dd|d||dq
|j
dd}|dd|j
d0d9|dd|d"d}|
dds|ddd%dddZddddd}|
dd|j}d|}d|}|dd%dAdd%dd}|d||d||d||d||ddd%ddddd|ddd}|d||d||d||d|t|d||||||dddd=d>}|d?d%d@dAd%d)d|d7d-d-dDd-d)d|dFd-ddHddd|ddd-ddHdddddd|ddndd
d0d9t|d||||||ddd"}|d|dd%ddtddddXd	}|dd ddd-d|dd ddd-d|jd#dd d!|	dd"}|
dddd|j
d0d9dd|d"d}|
ddst|d||||||d"d"d"d=d>}|d?d-d%dAd%d)d|dFddddwddġ|ddddd-ddơ|dd&d|d&d-dd}|ddF|ddddZddRddddd}|ddˡ|jddd=d!|j	dd"d=d!|d"d#
ddst|d||||||ddd"}|d͡|dd%ddHdhddС|dd%ddHddddXd	}|dd ddAd{d֡|dd ddAd{d١|jddd=d!|	dd"}|
dddd|
dddd@|
ddddN|
dddd|
dddd|
dddd|
dddd|
dddd|
d0d9dd-|d"dѡ
ddsdS)Nriri,z[ProductName] Setupr%r$ rb)Z
DefaultUIFontDlgFont8)ZErrorDialogErrorDlg)Z	Progress1ZInstall)Z	Progress2Zinstalls)MaintenanceForm_ActionRepair)
WhichUsersALLZ	TextStyle)rTahoma	Nr)ZDlgFontBold8rNr$)Z
VerdanaBold10VerdanarNr$)ZVerdanaRed9rrrr)
PrepareDlgz(Not Privileged or Windows9x or Installed)
WhichUsersDlgz.Privileged and not Windows9x and not Installed)SelectFeaturesDlgz
Not Installedi)MaintenanceTypeDlgz,Installed AND NOT RESUME AND NOT Preselectedi)ProgressDlgNi
ActionTextUITextZ
FatalErrorZFinishz)[ProductName] Installer ended prematurelyz< Backr)r/r2r#ZDescription1rFrPr!z[ProductName] setup ended prematurely because of an error.  Your system has not been modified.  To install this program at a later time, please run the installation again.ZDescription2z.Click the Finish button to exit the Installer.)r.Z	EndDialogZExitZUserExitz'[ProductName] Installer was interruptedz[ProductName] setup was interrupted.  Your system has not been modified.  To install this program at a later time, please run the installation again.Z
ExitDialogz&Completing the [ProductName] InstallerZDescriptionZReturnZ
FilesInUseZRetryF)Zbitmaprz{\DlgFontBold8}Files in Useiz8Some files that need to be updated are currently in use.ZText7iJzThe following applications are using files that need to be updated by this setup. Close these applications and then click Retry to continue the installation or Cancel to exit it.ZListZListBoxkZFileInUseProcessIgnorerreiZ	ErrorTextr0rNxHQZNoZErrorNoYZYesZErrorYesAZAbortZ
ErrorAbortC*ZErrorCancelIZErrorIgnoreOZOkZErrorOkRZ
ErrorRetryZ	CancelDlgiUz;Are you sure you want to cancel [ProductName] installation?9r(r)ZWaitForCostingDlgzRPlease wait while the installer finishes determining your disk space requirements.fr(zOPlease wait while the Installer prepares to guide you through the installation.z&Welcome to the [ProductName] InstallernzPondering...Z
ActionDatar4ZSpawnDialogrzSelect Python InstallationsZHintz9Select the Python locations where %s should be installed.zNext >z[TARGETDIR]z[SourceDir])Zorderingz
[TARGETDIR%s]z FEATURE_SELECTED AND &Python%s=3ZSpawnWaitDialogr`ZFeaturesZ
SelectionTreer ZFEATUREZPathEditz[FEATURE_SELECTED]1z!FEATURE_SELECTED AND &Python%s<>3ZOtherz$Provide an alternate Python locationZEnableZShowZDisableZHiderZDiskCostDlgZOKz&{\DlgFontBold8}Disk Space RequirementszFThe disk space required for the installation of the selected features.5aThe highlighted volumes (if any) do not have enough disk space available for the currently selected features.  You can either remove some files from the highlighted volumes, or choose to install less features onto local drive(s), or select different destination drive(s).Z
VolumeListZVolumeCostListdiz{120}{70}{70}{70}{70}g?rZAdminInstallzGSelect whether to install [ProductName] for all users of this computer.rrzInstall for all usersZJUSTMEzInstall just for mez
[ALLUSERS]zWhichUsers="ALL"rz({\DlgFontBold8}[Progress1] [ProductName]#AzYPlease wait while the Installer [Progress2] [ProductName]. This may take several minutes.ZStatusLabelzStatus:ZProgressBariz
Progress doneZSetProgressZProgressrz)Welcome to the [ProductName] Setup WizardZBodyText?z:Select whether you want to repair or remove [ProductName].ZRepairRadioGrouplrrrz&Repair [ProductName]ZRemoverzRe&move [ProductName]z[REINSTALL]zMaintenanceForm_Action="Repair"z[Progress1]Z	Repairingz[Progress2]ZrepairsZ	Reinstallrz[REMOVE]zMaintenanceForm_Action="Remove"ZRemovingZremoves
z MaintenanceForm_Action<>"Change")rwrrrrrr"r1r3r-ZeventZcontrolrr+mappingrVrnrOrZ	conditionr8Z
radiogroupadd)rrwxyrrr"ZmodalZmodelessZtrack_disk_spaceZfatalrAZ	user_exitZexit_dialogZinuseerrorr3ZcostingZprepZseldlgorderrurZinstall_other_condZdont_install_other_condZcostZ
whichusersgZprogressZmaintrrrr|sv
	



       





zbdist_msi.add_uicCs<|jrd||j|jf}nd||jf}tj|j|}|S)Nz%s.%s-py%s.msiz	%s.%s.msi)rJrHrSrTrUrK)rrZ	base_namerrrrrosz bdist_msi.get_installer_filenameN)r9r:r;ZdescriptionrZuser_optionsZboolean_optionsrYrrPr\rmrzryr{r|rorrrrr<Ss^

([66&@r<)rirSZdistutils.corerZdistutils.dir_utilrZdistutils.sysconfigrZdistutils.versionrZdistutils.errorsrZdistutils.utilrZ	distutilsrrvr	r
rrr
rrrr<rrrr<module>	s>