File "bdist_msi.cpython-34.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python34/lib64/python3.4/distutils/command/__pycache__/bdist_msi.cpython-34.pyc
File size: 21.33 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


h f@sdZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZdd	lmZddlZdd
lmZmZmZddlmZmZmZmZGdd
d
eZGdddeZdS)z#
Implements the bdist_msi command.
N)Command)remove_tree)get_python_version)
StrictVersion)DistutilsOptionError)get_platform)log)schemasequencetext)	DirectoryFeatureDialogadd_datac@speZdZdZddZddZdddd	Zd
dddZd
dddZddZ	dS)PyDialogzDialog class with a fixed layout: controls at the top, then a ruler,
    then a list of buttons: back, next, cancel. Optionally a bitmap at the
    left.cOsKtj|||jd}d|d}|jdd||jddS)zbDialog(database, name, x, y, w, h, attributes, title, first,
        default, cancel, bitmap=true)$iHZ
BottomLinerN)r__init__hlinew)selfargskwZrulerZbmwidthr@/opt/alt/python34/lib64/python3.4/distutils/command/bdist_msi.pyrs
zPyDialog.__init__c	Cs'|jddddddd|dS)	z,Set the title text of the dialog at the top.Title
i@<iz{\VerdanaBold10}%sN)r)rtitlerrrr #szPyDialog.titleBackc	Cs>|rd}nd}|j|d|jddd|||S)zAdd a back button with a given title, the tab-next button,
        its name in the Control table, possibly initially disabled.

        Return the button, so that events can be associatedr"8)
pushbuttonr)rr nextnameactiveflagsrrrback*s	z
PyDialog.backCancelc	Cs>|rd}nd}|j|d|jddd|||S)zAdd a cancel button with a given title, the tab-next button,
        its name in the Control table, possibly initially disabled.

        Return the button, so that events can be associatedr#r"i0r%r&r')r(r)rr r)r*r+r,rrrcancel5s	zPyDialog.cancelNextc	Cs>|rd}nd}|j|d|jddd|||S)zAdd a Next button with a given title, the tab-next button,
        its name in the Control table, possibly initially disabled.

        Return the button, so that events can be associatedr#r"r%r&r')r(r)rr r)r*r+r,rrrr)@s	z
PyDialog.nextc	Cs:|j|t|j|d|jdddd||S)zAdd a button with a given title, the tab-next button,
        its name in the Control table, giving its x position; the
        y-position is aligned with the other buttons.

        Return the button, so that events can be associatedr%r&r'r#)r(intrr)rr*r r)ZxposrrrxbuttonKszPyDialog.xbuttonN)
__name__
__module____qualname____doc__rr r-r/r)r4rrrrrs
rc@s]eZdZdZdddfdddefdd	d
dfddd
dfdddfdddfdddfdddfdddfdddfg
ZddddgZddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1gZd2Zd3d4Z	d5d6Z
d7d8Zd9d:Zd;d<Z
d=d>Zd?d@ZdAdBZdS)C	bdist_msiz7create a Microsoft Installer (.msi) binary distributionz
bdist-dir=Nz1temporary directory for creating the distributionz
plat-name=pz;platform name to embed in generated filenames (default: %s)z	keep-tempkz/keep the pseudo-installation tree around after z!creating the distribution archiveztarget-version=z!require a specific python versionz on the target systemzno-target-compilecz/do not compile .py to .pyc on the target systemzno-target-optimizeoz:do not compile .py to .pyo (optimized)on the target systemz	dist-dir=dz-directory to put final built distributions inz
skip-buildz2skip rebuilding everything (for testing/debugging)zinstall-script=zTbasename of installation script to be run afterinstallation or before deinstallationzpre-install-script=z{Fully qualified filename of a script to be run before any files are installed.  This script need not be in the distributionz2.0z2.1z2.2z2.3z2.4z2.5z2.6z2.7z2.8z2.9z3.0z3.1z3.2z3.3z3.4z3.5z3.6z3.7z3.8z3.9XcCsgd|_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}s										zbdist_msi.initialize_optionscCsr|jdd	|jdkrL|jdj}tjj|d|_nt}|jrz|j	j
rz||_n|jr|jg|_|jr|j	j
r|j|krt
d|fqnt|j|_|jdd
d|jrt
dn|jrexI|j	jD]%}|jtjj|kr&Pq&q&Wt
d|jnd|_dS)NZbdistrEZmsizMtarget version can only be %s, or the '--skip-build' option must be specifiedrDrAz5the pre-install-script feature is not yet implementedz(install_script '%s' not found in scripts)
skip_buildrJ)dist_dirrK)	plat_namerL)Zset_undefined_optionsr@get_finalized_command
bdist_baseospathjoinrrCdistributionhas_ext_modulesrHrErlistall_versionsrGrFscriptsbasenameinstall_script_key)rrNZ
short_versionZscriptrrrfinalize_optionss:					zbdist_msi.finalize_optionscCs|js|jdn|jddd}|j|_|j|_d|_|jd}d|_d|_|jj	r|j
}|s|jstdtj
dd}nd	|j|f}|jd}tjj|jd
||_ntjd|j|jtjjdtjj|jd|jtjd=|j|j|jj}|j|}tjj|}tjj|rtj |n|jj!}|j"}	|	s|j#}	n|	sd
}	n|j$}
dt%|
j
}|jj}|j
r8d|j
|f}n
d|}t&j'|t(|t&j)||	|_*t&j+|j*t,d|
fg}
|j-p|j.}|r|
j/d|fn|j0r|
j/d|j0fn|
rt1|j*d|
n|j2|j3|j4|j5|j*j6t7|jdrld|j
pMd|f}|jj8j/|n|j9st:|jd|j;ndS)NbuildinstallZreinit_subcommandsr"rinstall_libz Should have already checked thisr#z.%s-%slibzinstalling to %sZPURELIBZUNKNOWNz%d.%d.%dzPython %s %sz	Python %sZDistVersionZ
ARPCONTACTZARPURLINFOABOUTProperty
dist_filesr9anydry_run)<rEZrun_commandZreinitialize_commandr@prefixZwarn_dircompileoptimizerRrSrCAssertionErrorsysversionrArMrOrPrQZ
build_baseZ	build_librinfoZensure_finalizedinsertrunZmkpathrDget_fullnameget_installer_filenameabspathexistsunlinkmetadataauthorZ
maintainerZget_versionrmsilibZ
init_databaser	Zgen_uuiddbZ
add_tablesr
Zauthor_emailZmaintainer_emailappendZurlradd_find_python	add_filesadd_scriptsadd_uiCommithasattrr_rBrra)rr[r\rCZplat_specifierrZfullnameinstaller_namerprqrgZsversionZproduct_nameZpropsZemailtuprrrrjs~					
%

			
	




	z
bdist_msi.runc
Cs|j}tjd}tjj|j}t||d|dd}t|ddddddd}||d	fg}x|j	|j
gD]}d|}d|}	}
d}||j
krd
}d}
nd|}d}
t||	||d|
d|}t||||||
}|j|||fqW|ji}x|D]\}}}|g}xg|r|j
}xNtj|jD]:}tjj|j|}tjj|rd
|j||f}||}
t|||||
|}|j|q|js.|j|j|dn||kr|j|}||<||jkr|jr|td|nd||_qq||}t|jd|||j|d|jfgqWqiW|jqNW|j|dS)NZ	distfiles	TARGETDIRZ	SourceDirPythonZ
Everythingrr"Z	directoryzPython from another locationzPython %s from registryz%s|%szMultiple files with name %sz[#%s]Z
DuplicateFile)rsrrZCABrOrPrmr@rr
rH
other_versionrtrypoplistdirZabsoluterQisdirZ
make_shortZ	componentZstart_componentZlogicalZadd_filerFrXrrZcommit)rrsZcabZrootdirrootfitemsrgtargetr*defaultZdescr leveldirseenZfeatureZtodofileZafileZshortZnewdirkeyrrrrv
s\	
	
!
		
		
+zbdist_msi.add_filescCsd}x|jD]}d|}d|}d|}d|}d|}d|}d|}	d	|}
d
|}d|}tjrd }
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}|dkstqWdS)$asAdds code to the installer to compute the location of Python.

        Properties PYTHON.MACHINE.X.Y and PYTHON.USER.X.Y will be set from the
        registry for each version of Python.

        Properties TARGETDIRX.Y will be set from PYTHON.USER.X.Y if defined,
        else from PYTHON.MACHINE.X.Y.

        Properties PYTHONX.Y will be set to TARGETDIRX.Y\python.exeiz)SOFTWARE\Python\PythonCore\%s\InstallPathzpython.machine.zpython.user.zPYTHON.MACHINE.zPYTHON.USER.ZPythonFromMachineZPythonFromUserZ	PythonExer~PYTHONrZ
RegLocatorNr"Z	AppSearchCustomAction3[]z]\python.exeInstallExecuteSequenceInstallUISequenceZ	Conditionrrz
NOT TARGETDIRii3i3i3)rHrrZWin64rrsre)rstartverZinstall_pathZmachine_regZuser_regZmachine_propZ	user_propZmachine_actionZuser_actionZ
exe_actionZtarget_dir_propexe_propZTyperrrruCsJ









			
zbdist_msi.add_find_pythoncCsQ|jrd}x|j|jgD]l}d|}d|}t|jd|d||jfgt|jd|d||fg|d7}q#Wn|jrMtjj	|j
d	}t|d
}|jd|jt|jj
|jt|jdd
tj|fgt|jddgt|jddgndS)Nizinstall_script.rr2rz&Python%s=3r"zpreinstall.batrzrem ="""
%1 %0
exit
"""
Binary
PreInstallr
NOT Installed)rrrN)rrr)rFrHrrrsrXrGrOrPrQr@openwritereadcloserrr)rrrZinstall_actionrZscriptfnrrrrrwys,	

		


zbdist_msi.add_scriptscCsG|j}d}}d}d}d}d}d}d}	t|dddddddgt|dddddgt|d dddddgt|d/tjt|d0tjt|d1||||||d2d2d2}
|
jd3|
jd4d2d5d|
jd6d7d5d|
jd8d9d:d;d<d=d>|
jd?d9d@d;dAd=dB|
j	d2d6dCd2}|j
dDdEt|dF||||||d2d2d2}|jdG|jd4d2d5d|jd6d7d5d|jd8d9d:d;d<d=dH|jd?d9d@d;dAd=dB|j	d2d6dCd2}|j
dDdEt|dI||||||d2d2d2}
|
jdJ|
jd4d2d5d|
jd6d7d5d|
jdKd9dLd;dAd=dB|
j	d2d6dCd2}|j
dDdMt|dN||||dO|dPdPdPdQdR}|jdSd9dTdUd9d=dV|jdKdAdWdXdAd=dY|jdZdAd[d\ddd]|jd^d_dAd`d\dadbdcddd|jdEdddCdE}|j
dDdE|j	dddPdCdd}|j
dDdd|jdPdEdCdP}|j
dDdPt|dddd\dedf|dgdd}|jdgdddXdhddi|j
djdkdldmdnddodj
dDdp|j
dqdrdldmdnddsdj
dDdt|j
duddldmdnddvdj
dDdw|j
dxdydldmdndd6dj
dDdz|j
d{dmdldmdnddddj
dDd||j
d}d~dldmdndddj
dDd|j
dddldmdnddPdj
dDdt|dddddd|dododo}|jdZdhd9dddd|j
dsdldddddsdo}|j
dDdE|j
doddddddods}|j
dDdMt|ddddd||dMdMdM}|jdZdhd9dddd|j
dMddddddMd}|j
dDdEt|d!||||||d6d6d6}|jdKd9d:d;dd=d|jd|jd/d9dd;dAd=d}|jd/dZ|jdd9dd;dd=d}|jddZ|jd7dd5d|j	ddd5d|jd6d}|j
ddt|d'||||||ddd6}|jd|jdd9dddAdd|jj|jd4dd5d|j	dd6}d}|j
ddd|xF|j|jgD]1}|d7}|j
dd|d|d|qW|j
ddd|d|j
dDdMd|d|jd6d}|j
dd|jddd9dddkddddd}|j
dd|j}d|}d|}|jdd9dUdd9dd}|jd||jd||jd||jd||jddd9ddddd|ddd}|jd||jd||jd||jd|t|d||||||ddddQdR}|jdSd9dTdUd9d=d|jdKdAdAdXdAd=d|jdZdAdd\ddd|jdddAdd\dddddd|jddddj
dDdMt|d$||||||ddd6}|jd|jdd9ddddddid	}|jdddddAd|jdddddAd|jd7dd5d|j	dd6}|j
dddd|j
dDdMdd|jd6d}|j
ddt|d-||||||d6d6d6dQdR}|jdSdAd9dUd9d=d|jdZdddddd|jdddddAdd|jd/d:d|d:dAdd}|jd/dZ|jddddkddddddd}|jdd|jd4dd5dR|j	dd6d5dR|jd6d7j
ddt|d*||||||ddd6}|jd|jdd9dd\dydd|jdd9dd\ddddid	}|jddddUdd|jddddUdd|jd4dd5dR|j	d2d6}|j
dddd|j
ddddT|j
ddddb|j
dddd|j
dddd|j
dddd|j
dddd|j
dddd|j
dDdMddA|jd6dj
dddS(Nriri,z[ProductName] Setupr#r" r^
DefaultUIFontDlgFont8ErrorDialogErrorDlg	Progress1Install	Progress2installsMaintenanceForm_ActionRepair
WhichUsersALLZ	TextStyleTahoma	rDlgFontBold8
VerdanaBold10VerdanarVerdanaRed9r
PrepareDlg(Not Privileged or Windows9x or Installed
WhichUsersDlg.Privileged and not Windows9x and not InstalledSelectFeaturesDlg
Not InstalledMaintenanceTypeDlg,Installed AND NOT RESUME AND NOT PreselectedProgressDlg
ActionTextUITextZ
FatalErrorZFinishz)[ProductName] Installer ended prematurelyz< Backr+r.r!ZDescription1rFi@Piz[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
FilesInUseZRetryZbitmapFrz{\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.ZListZListBoxkZFileInUseProcessIgnoreeiZ	ErrorText0rNxHQZNoZErrorNoYZYesZErrorYesAZAbortZ
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.f(zOPlease wait while the Installer prepares to guide you through the installation.z&Welcome to the [ProductName] InstallernzPondering...Z
ActionDatar0ZSpawnDialogzSelect Python InstallationsZHintz9Select the Python locations where %s should be installed.zNext >z[TARGETDIR]z[SourceDir]Zorderingz
[TARGETDIR%s]z FEATURE_SELECTED AND &Python%s=3ZSpawnWaitDialogrZFeaturesZ
SelectionTreerZFEATUREZPathEditz[FEATURE_SELECTED]1z!FEATURE_SELECTED AND &Python%s<>3ZOtherz$Provide an alternate Python locationZEnableZShowZDisableZHiderr~ZDiskCostDlgZOKz&{\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?ZAdminInstallzGSelect whether to install [ProductName] for all users of this computer.zInstall for all usersZJUSTMEzInstall just for mez
[ALLUSERS]zWhichUsers="ALL"z({\DlgFontBold8}[Progress1] [ProductName]#AzYPlease wait while the Installer [Progress2] [ProductName]. This may take several minutes.ZStatusLabelzStatus:ZProgressBariz
Progress doneZSetProgressZProgressz)Welcome to the [ProductName] Setup WizardZBodyText?z:Select whether you want to repair or remove [ProductName].ZRepairRadioGrouplrz&Repair [ProductName]ZRemoverzRe&move [ProductName]z[REINSTALL]zMaintenanceForm_Action="Repair"z[Progress1]Z	Repairingz[Progress2]ZrepairsZ	Reinstallz[REMOVE]zMaintenanceForm_Action="Remove"ZRemovingZremoves
z MaintenanceForm_Action<>"Change")rr)rr)rr)rr)rr)rr)rrrNr)rrrNr")rrrNr")rrrrr)rrr)rrr)rrr)rrr)rNr)rsrrrrrr r-r/r)ZeventZcontrolrr(mappingrRrkrHrZ	conditionr4Z
radiogroupadd)rrsxyrrr ZmodalZmodelessZtrack_disk_spaceZfatalr<Z	user_exitZexit_dialogZinuseerrorr/ZcostingZprepZseldlgZorderrgrZinstall_other_condZdont_install_other_condZcostZ
whichusersgZprogressZmaintrrrrxs	
	
	
	



	
	.......$$$
!!


	

	"

%
zbdist_msi.add_uicCsT|jr%d||j|jf}nd||jf}tjj|j|}|S)Nz%s.%s-py%s.msiz	%s.%s.msi)rCrArOrPrQrD)rr{Z	base_namer|rrrrls	z bdist_msi.get_installer_filename)r5r6r7ZdescriptionrZuser_optionsZboolean_optionsrUrrIrYrjrvrurwrxrlrrrrr9SsP
		
([66&?r9)r8rfrOZdistutils.corerZdistutils.dir_utilrZdistutils.sysconfigrZdistutils.versionrZdistutils.errorsrZdistutils.utilrZ	distutilsrrrr	r
rrr
rrrr9rrrr<module>s">