ACC SHELL

Path : /usr/lib/python/distutils/command/
File Upload :
Current File : //usr/lib/python/distutils/command/bdist_wininst.pyo

Ñò
tÄMc@sªdZdZddkZddkZddkZddklZddklZddk	l
Z
lZddkTddk
lZdd	klZd
efd„ƒYZdS(szdistutils.command.bdist_wininst

Implements the Distutils 'bdist_wininst' command: create a windows installer
exe-program.s>$Id: bdist_wininst.py 71422 2009-04-09 22:48:19Z tarek.ziade $iÿÿÿÿN(tCommand(tget_platform(tcreate_treetremove_tree(t*(tget_python_version(tlogt
bdist_wininstcBs¹eZdZd,dddeƒfdddd	fd
d+ddfd-d.d/d0d1d2d3d4d5g
Zdd
ddgZd$„Zd%„Zd&„Z	d'„Z
d+d(„Zd)„Zd*„Z
RS(6s-create an executable installer for MS Windowss
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 insbitmap=tbs>bitmap to use for the installer instead of python-powered logostitle=tts?title to display on the installer background instead of defaults
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 distributionsuser-access-control=sŠspecify Vista's UAC handling - 'none'/default=no handling, 'auto'=use UAC if target Python installed for all users, 'force'=always use UACcCsyd|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
dS(Ni(tNonet	bdist_dirt	plat_namet	keep_temptno_target_compiletno_target_optimizettarget_versiontdist_dirtbitmapttitlet
skip_buildtinstall_scripttpre_install_scripttuser_access_control(tself((s5/usr/lib/python2.6/distutils/command/bdist_wininst.pytinitialize_options>s												cCsW|idjod|io,|io"|iidƒ}|i|_n|idƒi}ti	i
|dƒ|_n|ip
d|_n|ioT|iiƒoDt
ƒ}|io$|i|jotd|f‚n||_n|iddd	ƒ|ioLxI|iiD]'}|iti	i|ƒjoPqqWtd|i‚ndS(
NtbdisttwininsttsMtarget version can only be %s, or the '--skip_build' option must be specifiedRRs(install_script '%s' not found in scripts(sdist_dirsdist_dir(s	plat_names	plat_name(RRRRtdistributiontget_command_objtget_finalized_commandt
bdist_basetostpathtjoinRthas_ext_modulesRtDistutilsOptionErrortset_undefined_optionsRtscriptstbasename(RRR%t
short_versiontscript((s5/usr/lib/python2.6/distutils/command/bdist_wininst.pytfinalize_optionsPs4

	
	

	c
	CsÂtidjo0|iiƒp|iiƒotdƒ‚n|ip|idƒn|idddƒ}|i	|_
|i|_d|_|i|_|idƒ}d|_
d|_|iiƒoi|i}|ptidd	!}nd
|i|f}|idƒ}tii|id|ƒ|_nxLdD]D}ti|ƒ}|djo|d}nt|d||ƒq>Wtid|i	ƒ|iƒtiidtii|i	dƒƒ|iƒtid=ddkl }|ƒ}	|ii!ƒ}
|i"|	dd|i	ƒ}|i#||
|i$ƒ|iiƒo
t%ƒ}nd}|ii&i'd||i(|
ƒfƒti)d|ƒti*|ƒ|i+pt,|i	d|i-ƒndS(Ntwin32s^distribution contains extensions and/or C libraries; must be compiled on a Windows 32 platformtbuildtinstalltreinit_subcommandsiitinstall_libis.%s-%stlibtpurelibtplatlibtheadersR,tdatas/Include/$dist_nametinstall_sinstalling to %stPURELIBiÿÿÿÿ(tmktemptziptroot_dirtanyRsremoving temporary file '%s'tdry_run(R7R8R9sscriptssdata(.tsystplatformR"R)thas_c_librariestDistutilsPlatformErrorRtrun_commandtreinitialize_commandRtroottwarn_dirRtcompiletoptimizeRtversionR$R&R'R(t
build_baset	build_libtstringtuppertsetattrRtinfotensure_finalizedtinserttrunttempfileR=tget_fullnametmake_archivet
create_exeRRt
dist_filestappendtget_installer_filenametdebugtremoveRRRA(
RR3R5Rtplat_specifierR2tkeytvalueR=tarchive_basenametfullnametarcnamet	pyversion((s5/usr/lib/python2.6/distutils/command/bdist_wininst.pyRUtsf

				

%

	


cCsg}|ii}|idƒ|ipdd}d„}xƒddddd	d
ddgD]c}t||dƒ}|oD|d
ti|ƒ||ƒf}|id|||ƒfƒq[q[W|idƒ|io|id|iƒn|id||ƒƒ|id|iƒ|id|i	ƒ|i
o|id|i
ƒn|io|id|iƒn|ip
|ii
ƒ}|id||ƒƒddk}ddk}	d|i|iƒƒ|	if}
|id|
ƒti|dƒS(Ns
[metadata]R!s
cSsti|ddƒS(Ns
s\n(ROtreplace(ts((s5/usr/lib/python2.6/distutils/command/bdist_wininst.pytescapeÕstauthortauthor_emailtdescriptiont
maintainertmaintainer_emailtnameturlRLs
    %s: %ss%s=%ss
[Setup]sinstall_script=%ssinfo=%sstarget_compile=%dstarget_optimize=%dstarget_version=%ssuser_access_control=%sstitle=%siÿÿÿÿsBuilt %s with distutils-%ss
build_info=%s(R"tmetadataR[tlong_descriptiontgetattrROt
capitalizeRRRRRRRWttimet	distutilstctimet__version__R((RtlinesRpRRRhRnR:RRtRut
build_info((s5/usr/lib/python2.6/distutils/command/bdist_wininst.pytget_inidataÇs>
	%



c	Cs•ddk}|i|iƒ|iƒ}|i|ƒ}|id|ƒ|o%t|dƒiƒ}t|ƒ}nd}t|dƒ}	|	i	|i
ƒƒ|o|	i	|ƒnytWntj
on%Xt
|tƒo|idƒ}n|d}|io*t|idƒiƒ}
||
d	}n|d}|	i	|ƒ|id
dt|ƒ|ƒ}|	i	|ƒ|	i	t|dƒiƒƒdS(Niÿÿÿÿscreating %strbitwbtmbcsttrs
s<iiii{V4(tstructtmkpathRRzR\tannouncetopentreadtlentwritet
get_exe_bytestunicodet	NameErrort
isinstancetencodeRtpack(RRdRcRR€tcfgdatatinstaller_namet
bitmapdatat	bitmaplentfiletscript_datatheader((s5/usr/lib/python2.6/distutils/command/bdist_wininst.pyRYøs>



			
cCsb|io/tii|id||i|ifƒ}n&tii|id||ifƒ}|S(Ns%s.%s-py%s.exes	%s.%s.exe(RR&R'R(RR(RRcRŽ((s5/usr/lib/python2.6/distutils/command/bdist_wininst.pyR\/s
cCsüddkl}tƒ}|ioQ|i|joA|i|jo
|ƒ}q}|idjo
d}q}d}n
|ƒ}tiitƒ}|idjo%|id djo|id}nd	}tii	|d
||fƒ}t
|dƒiƒS(Niÿÿÿÿ(tget_build_versions2.4g@gffffff@R1itwinR!swininst-%.1f%s.exeR{(tdistutils.msvccompilerR”RRR&R'tdirnamet__file__RR(RƒR„(RR”tcur_versiontbvt	directorytsfixtfilename((s5/usr/lib/python2.6/distutils/command/bdist_wininst.pyR‡=s		


	$N(s
bdist-dir=Ns1temporary directory for creating the distribution(sno-target-compileR
s/do not compile .py to .pyc on the target system(sno-target-optimizeRs:do not compile .py to .pyo (optimized)on the target system(s	dist-dir=Rs-directory to put final built distributions in(sbitmap=R
s>bitmap to use for the installer instead of python-powered logo(stitle=Rs?title to display on the installer background instead of default(s
skip-buildNs2skip rebuilding everything (for testing/debugging)(sinstall-script=NsTbasename of installation script to be run afterinstallation or before deinstallation(spre-install-script=Ns{Fully qualified filename of a script to be run before any files are installed.  This script need not be in the distribution(suser-access-control=NsŠspecify Vista's UAC handling - 'none'/default=no handling, 'auto'=use UAC if target Python installed for all users, 'force'=always use UAC(t__name__t
__module__RkRRtuser_optionstboolean_optionsRR0RURzRYR\R‡(((s5/usr/lib/python2.6/distutils/command/bdist_wininst.pyRsN
					$	S	17	(t__doc__t__revision__RBR&ROtdistutils.coreRtdistutils.utilRtdistutils.dir_utilRRtdistutils.errorstdistutils.sysconfigRRuRR(((s5/usr/lib/python2.6/distutils/command/bdist_wininst.pyt<module>s$


ACC SHELL 2018