a ÕDOgûŠã@sÄddlZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z ddl mZddlmZddlZdd lmZmZmZdd lmZmZmZmZGd d „d eƒZGd d„deƒZdS)éN)ÚCommand)Ú remove_tree)Úget_python_version)Ú StrictVersion)ÚDistutilsOptionError)Ú get_platform)Úlog)ÚschemaÚsequenceÚtext)Ú DirectoryÚFeatureÚDialogÚadd_datac@sBeZdZdd„Zdd„Zddd„Zdd d „Zdd d„Zdd„ZdS)ÚPyDialogcOs@tj|g|¢RŽ|jd}d|d}| dd||jd¡dS)Né$é˜iHZ BottomLiner)rÚ__init__ÚhÚlineÚw)ÚselfÚargsÚkwZrulerZbmwidth©rú@/opt/alt/python39/lib64/python3.9/distutils/command/bdist_msi.pyrs  zPyDialog.__init__c Cs| ddddddd|¡dS)NÚTitleéé é@é<éz{\VerdanaBold10}%s)r )rÚtitlerrrr"%sÿzPyDialog.titleÚBackéc Cs,|r d}nd}| |d|jddd|||¡S)Nér$é´éé8é©Ú pushbuttonr©rr"ÚnextÚnameÚactiveÚflagsrrrÚback,sz PyDialog.backÚCancelc Cs,|r d}nd}| |d|jddd|||¡S)Nr%r$i0r'r(r)r*r,rrrÚcancel7szPyDialog.cancelÚNextc Cs,|r d}nd}| |d|jddd|||¡S)Nr%r$éìr'r(r)r*r,rrrr-Bsz PyDialog.nextc Cs,| |t|j|dƒ|jdddd||¡S)Nér'r(r)r%)r+Úintrr)rr.r"r-ZxposrrrÚxbuttonMszPyDialog.xbuttonN)r#r$)r2r$)r4r$) Ú__name__Ú __module__Ú __qualname__rr"r1r3r-r8rrrrrs   rc s˜eZdZdZddddeƒfdddd d d d d g Zgd¢Zgd¢ZdZ‡fdd„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd „Zd!d"„Z‡ZS)#Ú 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-tempÚkzPkeep the pseudo-installation tree around after creating the distribution archive)ztarget-version=Nz6require a specific python version on the target system)úno-target-compileÚcz/do not compile .py to .pyc on the target system)úno-target-optimizeÚoz;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 distribution)r>r@rBrE)z2.0z2.1z2.2z2.3z2.4z2.5z2.6z2.7z2.8z2.9z3.0z3.1z3.2z3.3z3.4z3.5z3.6z3.7z3.8z3.9ÚXcs$tƒj|i|¤Žt dtd¡dS)NzZbdist_msi command is deprecated since Python 3.9, use bdist_wheel (wheel packages) insteadé)ÚsuperrÚwarningsÚwarnÚDeprecationWarning)rrr©Ú __class__rrrsþzbdist_msi.__init__cCsFd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ dS)Nr) Ú bdist_dirÚ plat_nameÚ keep_tempZno_target_compileZno_target_optimizeÚtarget_versionÚdist_dirÚ skip_buildÚinstall_scriptÚpre_install_scriptÚversions)rrrrÚinitialize_options…szbdist_msi.initialize_optionscCsò| dd¡|jdur2| d¡j}tj |d¡|_tƒ}|jsN|j   ¡rN||_|jrˆ|jg|_ |j s”|j   ¡r”|j|kr”t d|fƒ‚n t|jƒ|_ | ddd¡|jr°t dƒ‚|jrè|j jD]}|jtj |¡kr¾qèq¾t d|jƒ‚d|_dS) NZbdist)rSrSZmsizMtarget version can only be %s, or the '--skip-build' option must be specified)rRrR)rOrOz5the pre-install-script feature is not yet implementedz(install_script '%s' not found in scripts)Zset_undefined_optionsrNÚget_finalized_commandÚ bdist_baseÚosÚpathÚjoinrrQÚ distributionÚhas_ext_modulesrVrSrÚlistÚ all_versionsrUrTZscriptsÚbasenameÚinstall_script_key)rrYZ short_versionZscriptrrrÚfinalize_options’sH    ÿÿÿ þÿ ÿÿzbdist_msi.finalize_optionscCsz|js| d¡|jddd}|j|_|j|_d|_| d¡}d|_d|_|j  ¡rž|j }|spdt j dd…}d |j |f}| d¡}tj |jd |¡|_t d |j¡| ¡t j dtj |jd ¡¡| ¡t jd=| |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* 6¡t7|jdƒr^d|j pJd|f}|jj8 /|¡|j9svt:|j|j;ddS)NÚbuildÚinstallr$)Zreinit_subcommandsrÚ install_libz%d.%drGz.%s-%sÚlibzinstalling to %sZPURELIBZUNKNOWNz%d.%d.%dz Python %s %sz Python %sZ DistVersionZ ARPCONTACTZARPURLINFOABOUTÚPropertyÚ dist_filesr<Úany)Údry_run)d?d!d@dz [TARGETDIR]z [SourceDir])Zorderingz [TARGETDIR%s]z FEATURE_SELECTED AND &Python%s=3ZSpawnWaitDialogrGZFeaturesZ SelectionTreer ZFEATUREZPathEditz[FEATURE_SELECTED]Ú1z!FEATURE_SELECTED AND &Python%s<>3ZOtherz$Provide an alternate Python locationZEnableZShowZDisableZHideé×érˆZ DiskCostDlgZOKz&{\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 VolumeListZVolumeCostListédé–iz{120}{70}{70}{70}{70}gà?r¹Z AdminInstallzGSelect whether to install [ProductName] for all users of this computer.r°r±ézInstall for all usersZJUSTMEézInstall just for mez [ALLUSERS]zWhichUsers="ALL"r½z({\DlgFontBold8}[Progress1] [ProductName]é#éAzYPlease wait while the Installer [Progress2] [ProductName]. This may take several minutes.Z StatusLabelzStatus:Z ProgressBariz Progress doneZ SetProgressZProgressr¼z)Welcome to the [ProductName] Setup WizardZBodyTexté?z:Select whether you want to repair or remove [ProductName].ZRepairRadioGroupélr®r¯ršz&Repair [ProductName]ZRemoverzRe&move [ProductName]z [REINSTALL]zMaintenanceForm_Action="Repair"z [Progress1]Z Repairingz [Progress2]ZrepairsZ Reinstallr´z[REMOVE]zMaintenanceForm_Action="Remove"é ZRemovingé Zremovesé éz MaintenanceForm_Action<>"Change")r}rr r¾r¿rr"r1r3r-ZeventZcontrolrr+Úmappingr]rtrVr‹Z conditionr8Z radiogroupÚadd)rr}ÚxÚyrrr"ZmodalZmodelessZtrack_disk_spaceZfatalrAZ user_exitZ exit_dialogZinuseÚerrorr3ZcostingZprepZseldlgÚorderr{r¢Zinstall_other_condZdont_install_other_condZcostZ whichusersÚgZprogressZmaintrrrr‚§sîþ ÿ ÿ ÿ ÿÿ ÿ ÿÿ ÿ ÿ üÿÿÿÿ   ü       ÿÿ  ÿÿ ÿÿ     ÿ ÿÿ  þ   ÿ ÿ     ÿ    ÿÿÿÿÿ ÿ ÿ   ÿÿÿ ÿ ÿ ÿÿ zbdist_msi.add_uicCs<|jrd||j|jf}nd||jf}tj |j|¡}|S)Nz%s.%s-py%s.msiz %s.%s.msi)rQrOrZr[r\rR)rr…Z base_namer†rrrruåsÿz bdist_msi.get_installer_filename)r9r:r;Z descriptionrZ user_optionsZboolean_optionsr`r‹rrWrcrsr€rrr‚ruÚ __classcell__rrrLrr<Us<ÿÿé  ([66&@r<)rZrorIZdistutils.corerZdistutils.dir_utilrZdistutils.sysconfigrZdistutils.versionrZdistutils.errorsrZdistutils.utilrZ distutilsrr|r r r r r rrrr<rrrrÚ s       >