ACC SHELL

Path : /usr/lib/python/distutils/command/
File Upload :
Current File : //usr/lib/python/distutils/command/bdist_msi.pyc

tMc@sdZddkZddkZddklZddklZddklZddk	l
Z
ddklZddk
lZdd	klZddkZdd
klZlZlZddklZlZlZlZdefd
YZdefdYZdS(s#
Implements the bdist_msi command.
iN(tCommand(tremove_tree(tget_python_version(t
StrictVersion(tDistutilsOptionError(tget_platform(tlog(tschematsequencettext(t	DirectorytFeaturetDialogtadd_datatPyDialogcBsVeZdZdZdZdddZdddZddd	Zd
ZRS(sDialog 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.cOsKti|||id}d|d}|idd||iddS(sbDialog(database, name, x, y, w, h, attributes, title, first,
        default, cancel, bitmap=true)i$iiHt
BottomLineiN(Rt__init__thtlinetw(tselftargstkwtrulertbmwidth((s1/usr/lib/python2.6/distutils/command/bdist_msi.pyRs
c	Cs'|iddddddd|dS(	s,Set the title text of the dialog at the top.tTitleii
i@i<is{\VerdanaBold10}%sN(R	(Rttitle((s1/usr/lib/python2.6/distutils/command/bdist_msi.pyR$stBackic	Cs@|o
d}nd}|i|d|iddd|||S(sAdd 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 associatediiiii8i(t
pushbuttonR(RRtnexttnametactivetflags((s1/usr/lib/python2.6/distutils/command/bdist_msi.pytback+s
tCancelc	Cs@|o
d}nd}|i|d|iddd|||S(sAdd 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 associatediii0ii8i(RR(RRRRRR ((s1/usr/lib/python2.6/distutils/command/bdist_msi.pytcancel6s
tNextc	Cs@|o
d}nd}|i|d|iddd|||S(sAdd 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 associatediiiii8i(RR(RRRRRR ((s1/usr/lib/python2.6/distutils/command/bdist_msi.pyRAs
c	Cs:|i|t|i|d|idddd||S(sAdd 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 associatediii8ii(RtintRR(RRRRtxpos((s1/usr/lib/python2.6/distutils/command/bdist_msi.pytxbuttonLs(	t__name__t
__module__t__doc__RRR!R#RR'(((s1/usr/lib/python2.6/distutils/command/bdist_msi.pyRs	
	t	bdist_msicBseZdZdedfdddefdddd	fd
eddfd
ddfdddfdddfdedfdedfdedfg
Zdd
ddgZdZdZdZ	dZ
d Zd!Zd"Z
d#ZRS($s7create a Microsoft Installer (.msi) binary distributions
bdist-dir=s1temporary directory for creating the distributions
plat-name=tps;platform name to embed in generated filenames (default: %s)s	keep-temptks/keep the pseudo-installation tree around after s!creating the distribution archivestarget-version=s!require a specific python versions on the target systemsno-target-compiletcs/do not compile .py to .pyc on the target systemsno-target-optimizetos:do not compile .py to .pyo (optimized)on the target systems	dist-dir=tds-directory to put final built distributions ins
skip-builds2skip rebuilding everything (for testing/debugging)sinstall-script=sTbasename of installation script to be run afterinstallation or before deinstallationspre-install-script=s{Fully qualified filename of a script to be run before any files are installed.  This script need not be in the distributioncCs^d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
dS(Ni(tNonet	bdist_dirt	plat_namet	keep_temptno_target_compiletno_target_optimizettarget_versiontdist_dirt
skip_buildtinstall_scripttpre_install_script(R((s1/usr/lib/python2.6/distutils/command/bdist_msi.pytinitialize_optionsxs									cCs*|idjo.|idi}tii|d|_nt}|ioC|i	o4|i
io$|i|jotd|fqn
||_|i
ddd	|io
tdn|ioLxI|i
iD]'}|itii|joPqqWtd|ind|_dS(
NtbdisttmsisMtarget version can only be %s, or the '--skip_build' option must be specifiedR8R3s5the pre-install-script feature is not yet implementeds(install_script '%s' not found in scripts(sdist_dirsdist_dir(s	plat_names	plat_name(R2R1tget_finalized_commandt
bdist_basetostpathtjoinRR7R9tdistributionthas_ext_modulesRtset_undefined_optionsR;R:tscriptstbasenametinstall_script_key(RR@t
short_versiontscript((s1/usr/lib/python2.6/distutils/command/bdist_msi.pytfinalize_optionss2	
		



	cCs}|ip|idn|iddd}|i|_|i|_d|_|id}d|_d|_|ii	o}|i
}|p(|ip
tdti
dd!}nd	|i|f}|id}tii|id
||_ntid|i|itiidtii|id|itid=|i|i|ii}|i|}tii|}tii|oti |n|ii!}|i"}	|	p
|i#}	n|	p
d
}	n|i$}
dt%|
i
}d|i
|iif}t&i'|t(|t&i)||	|_*t&i+|i*t,d|
fg}
|i-p|i.}|o|
i/d|fn|i0o|
i/d|i0fn|
ot1|i*d|
n|i2|i3|i4|i5|i*i6t7|ido#|ii8i/d|i
|fn|i9pt:|id|i;ndS(Ntbuildtinstalltreinit_subcommandsiitinstall_libs Should have already checked thisis.%s-%stlibsinstalling to %stPURELIBtUNKNOWNs%d.%d.%dsPython %s %stDistVersiont
ARPCONTACTtARPURLINFOABOUTtPropertyt
dist_filesR+tdry_run(<R9trun_commandtreinitialize_commandR2tprefixtwarn_dirtcompiletoptimizeRDRER7tAssertionErrortsystversionR3R?RARBRCt
build_baset	build_libRtinfotensure_finalizedtinserttruntmkpathR8tget_fullnametget_installer_filenametabspathtexiststunlinktmetadatatauthort
maintainertget_versionRtmsilibt
init_databaseRtgen_uuidtdbt
add_tablesRtauthor_emailtmaintainer_emailtappendturlR
tadd_find_pythont	add_filestadd_scriptstadd_uitCommitthasattrRXR4RRY(RRNRPR7tplat_specifierRMtfullnametinstaller_nameRoRpRbtsversiontproduct_nametpropstemail((s1/usr/lib/python2.6/distutils/command/bdist_msi.pyRhsx
				
%

	

	





#
c
Cs|i}tid}t|dddddd}|itii|i}t	||d|dd}|i|g}x|o|i}xti
|iD]}tii|i|}	tii|	o?t	|||||d	|i||f}
|i|
q|i|}||ijo,|iotd
|nd||_qqWqW|i|dS(Nt	distfilestdefaultsDefault Featuret
Everythingit	directoryt	TARGETDIRt	SourceDirs%s|%ssMultiple files with name %ss[#%s](RvRstCABRtset_currentRARBRlR2R
R1RtpoptlistdirtabsoluteRCtisdirt
make_shortRztadd_fileR:RIRtcommit(RRvtcabtftrootdirtrootttodotdirtfiletafiletnewdirtkey((s1/usr/lib/python2.6/distutils/command/bdist_msi.pyR}s.	

	.
c
Csd|i}tio
d!}nd}t|iddd|d |fdd|d |fgt|idd"d#gt|iddd$ddfdd%ddfdd&ddfdd'ddfgt|idd(d)d*d+gt|idd,d-d.d/gd S(0s8Adds code to the installer to compute the location of Python.
        Properties PYTHON.MACHINE, PYTHON.USER, PYTHONDIR and PYTHON will be set
        in both the execute and UI sequences; PYTHONDIR will be set from
        PYTHON.USER if defined, else from PYTHON.MACHINE.
        PYTHON is PYTHONDIR\python.exes)SOFTWARE\Python\PythonCore\%s\InstallPathiit
RegLocatorspython.machinespython.userit	AppSearchsPYTHON.MACHINEsPYTHON.USERtCustomActiontPythonFromMachinei3it	PYTHONDIRs[PYTHON.MACHINE]tPythonFromUsers
[PYTHON.USER]t	PythonExetPYTHONs[PYTHONDIR]\python.exetInitialTargetDirRs[PYTHONDIR]tInstallExecuteSequenceiiisTARGETDIR=""itInstallUISequenceNi(sPYTHON.MACHINEspython.machine(sPYTHON.USERspython.useri3i3i3i3(RsPYTHON.MACHINEi(RsPYTHON.USERi(RNi(RsTARGETDIR=""i(RsPYTHON.MACHINEi(RsPYTHON.USERi(RNi(RsTARGETDIR=""i(R7RstWin64R
RvR1(Rtinstall_pathtType((s1/usr/lib/python2.6/distutils/command/bdist_msi.pyR|s2




cCs|io?t|idddd|ifgt|iddgn|iotii|id}t	|d	}|i
d
|i
t	|ii|it|iddt
i|fgt|iddgt|iddgndS(NRR:i2RRs
NOT Installedispreinstall.batRsrem ="""
%1 %0
exit
"""
tBinaryt
PreInstallii(sinstall_scripts
NOT Installedi(RiRN(Rs
NOT Installedi(R:R
RvRIR;RARBRCR2topentwritetreadtcloseRsRR1(RtscriptfnR((s1/usr/lib/python2.6/distutils/command/bdist_msi.pyR~:s"

	


cCs|i}d}}d}d}d}d}d}d}	t|dddddddgt|dddddgt|d dddddgt|d/tit|d0tit|d1||||||d2d2d2}
|
id3|
id4d2d5d|
i	d6d7d5d|
id8d9d:d;d<d=d>|
id?d9d@d;dAd=dB|
i
d2d6dCd2}|idDdEt|dF||||||d2d2d2}|idG|id4d2d5d|i	d6d7d5d|id8d9d:d;d<d=dH|id?d9d@d;dAd=dB|i
d2d6dCd2}|idDdEt|dI||||||d2d2d2}
|
idJ|
id4d2d5d|
i	d6d7d5d|
idKd9dLd;dAd=dB|
i
d2d6dCd2}|idDdMt|dN||||dO|dPdPdPdQt}|idRd9dSdTd9d=dU|idKdAdVdWdAd=dX|idYdAdZd[ddd\|i
d]d^dAd_d[d`dadbddd|idEdcdCdE}|idDdE|i
dcdPdCdc}|idDdc|i	dPdEdCdP}|idDdPt|dddd[ddde|dfdd}|idfdddWdgddh|ididjdkdldmddndidDdo|idpdqdkdldmddrdidDds|idtddkdldmddudidDdv|idwdxdkdldmdd6didDdy|idzdldkdldmddcdidDd{|id|d}dkdldmdd~didDd|idddkdldmddPdidDdt|dddddd|dndndn}|idYdgd9dddd|idrdkdddddrdn}|idDdE|idnddddddndr}|idDdMt|ddddd||dMdMdM}|idYdgd9dddd|idMddddddMd}|idDdEt|d!||||||d6d6d6}|idKd9d:d;dd=d|id|id/d9dd;dAd=d}|id/dY|idd9dd;dd=d}|iddY|id7dd5d|i
ddd5d|i	d6d}|iddt|d'||||||ddd6}|idtid d}|idd9ddddd||id4dd5d|i
dd6}|idddd|idddd|idDdMdd|i	d6d}|idd|i
ddd9d:dd<ddddd|i
ddd9dddddddd|i
ddd9dddddddd|iddd:ddddd}|idd|iddd:ddddd}|iddt|d||||||ddddQt}|idRd9dSdTd9d=d|idKdAdAdWdAd=d|idYdAdd[ddd|i
dddAdd[dddddd|idd~ddidDdMt|d$||||||ddd6}|id|idd9ddddddhd	}|idddddAd|idddddAd|id7dd5d|i
dd6}|idddd|idDdMdd|i	d6d}|iddt|d-||||||d6d6d6dQt}|idRdAd9dTd9d=d|idYdddddd|idddddAdd|id/d:d|d:dAdd}|id/dY|i
ddddjddddddd}|idd|id4dd5t|i
dd6d5t|i	d6d7iddt|d*||||||ddd6}|id|idd9dd[dxdd|idd9dd[ddddhd	}|iddddTdd|iddddTdd|id4dd5t|i
d2d6}|idddd|iddddS|idddda|idddd|idddd|idddd|idddd|idddd|idDdMddA|i	d6didddS(Ni2iri,s[ProductName] Setupiii RWt
DefaultUIFonttDlgFont8tErrorDialogtErrorDlgt	Progress1tInstallt	Progress2tinstallstMaintenanceForm_ActiontRepairt
WhichUserstALLt	TextStyletTahomai	itDlgFontBold8it
VerdanaBold10tVerdanai
tVerdanaRed9iRt
PrepareDlgs(Not Privileged or Windows9x or Installedit
WhichUsersDlgs.Privileged and not Windows9x and not InstalleditSelectDirectoryDlgs
Not InstalleditMaintenanceTypeDlgs,Installed AND NOT RESUME AND NOT PreselecteditProgressDlgit
ActionTexttUITextt
FatalErrortFinishs)[ProductName] Installer ended prematurelys< BackRR"RtDescription1iiFi@iPis[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.tDescription2iis.Click the Finish button to exit the Installer.Rt	EndDialogtExittUserExits'[ProductName] Installer was interrupteds[ProductName] setup was interrupted.  Your system has not been modified.  To install this program at a later time, please run the installation again.t
ExitDialogs&Completing the [ProductName] InstallertDescriptionitReturnt
FilesInUseitRetrytbitmapRiis{\DlgFontBold8}Files in Useiis8Some files that need to be updated are currently in use.tTexti7iJsThe 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.tListtListBoxikiitFileInUseProcesstIgnoreieit	ErrorTexti0ttNixiHiQitNotErrorNotYitYestErrorYestAtAbortt
ErrorAborttCi*tErrorCanceltItErrorIgnoretOitOktErrorOktRit
ErrorRetryt	CancelDlgiiUiis;Are you sure you want to cancel [ProductName] installation?i9i8iitWaitForCostingDlgsRPlease wait while the installer finishes determining your disk space requirements.ifi(sOPlease wait while the Installer prepares to guide you through the installation.s&Welcome to the [ProductName] InstallerinsPondering...t
ActionDataiR$tSpawnDialogsSelect Destination Directoryt tHints@The destination directory should contain a Python %sinstallationsNext >t
SetTargetPathRtorderingtSpawnWaitDialogitDirectoryComboiit
DirectoryListiZi4itPathEditii2itUpitDirectoryListUpt0tNewDiriDtNewtDirectoryListNewtDiskCostDlgtOKs&{\DlgFontBold8}Disk Space RequirementssFThe disk space required for the installation of the selected features.i5i<sThe 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).t
VolumeListtVolumeCostListidiis{120}{70}{70}{70}{70}g?tAdminInstallsGSelect whether to install [ProductName] for all users of this computer.isInstall for all userstJUSTMEisInstall just for mes
[ALLUSERS]t1sWhichUsers="ALL"s({\DlgFontBold8}[Progress1] [ProductName]i#iAsYPlease wait while the Installer [Progress2] [ProductName]. This may take several minutes.tStatusLabelsStatus:tProgressBaris
Progress donetSetProgresstProgresss)Welcome to the [ProductName] Setup WizardtBodyTexti?s:Select whether you want to repair or remove [ProductName].tRepairRadioGroupils&Repair [ProductName]tRemovei$sRe&move [ProductName]s[REINSTALL]sMaintenanceForm_Action="Repair"s[Progress1]t	Repairings[Progress2]trepairst	Reinstalls[REMOVE]sMaintenanceForm_Action="Remove"itRemovingitremovesi
is MaintenanceForm_Action<>"Change"(RR(RR(RR(RR(RR(RR(RRi	Ni(RRiNi(RRi
Ni(RRi	ii(Rs(Not Privileged or Windows9x or Installedi(Rs.Privileged and not Windows9x and not Installedi(Rs
Not Installedi(Rs,Installed AND NOT RESUME AND NOT Preselectedi(RNi(RvR
R1R	RRRRR!R#RteventtFalsetcontrolRRtmappingRaRbR't
radiogrouptadd(RRvtxtyRRRtmodaltmodelessttrack_disk_spacetfatalR.t	user_exittexit_dialogtinuseterrorR#tcostingtpreptseldlgRbtcostt
whichuserstgtprogresstmaint((s1/usr/lib/python2.6/distutils/command/bdist_msi.pyRXs	
	
	
	



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

+$$"

%
cCs5d||i|if}tii|i|}|S(Ns%s.%s-py%s.msi(R3R7RARBRCR8(RRt	base_nameR((s1/usr/lib/python2.6/distutils/command/bdist_msi.pyRks
(R(R)tdescriptionR1Rtuser_optionstboolean_optionsR<RLRhR}R|R~RRk(((s1/usr/lib/python2.6/distutils/command/bdist_msi.pyR+TsF
				"	W		$		/(R*RaRAtdistutils.coreRtdistutils.dir_utilRtdistutils.sysconfigRtdistutils.versionRtdistutils.errorsRtdistutils.utilRt	distutilsRRsRRR	R
RRR
RR+(((s1/usr/lib/python2.6/distutils/command/bdist_msi.pyt<module>s">

ACC SHELL 2018