AlkantarClanX12

Your IP : 18.118.193.28


Current Path : /opt/alt/python33/lib64/python3.3/distutils/command/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/distutils/command/__pycache__/bdist_wininst.cpython-33.pyc

�
��f0:c@s�dZddlZddlZddlmZddlmZddlmZm	Z	ddl
TddlmZddl
mZGd	d
�d
e�ZdS(uzdistutils.command.bdist_wininst

Implements the Distutils 'bdist_wininst' command: create a windows installer
exe-program.iN(uCommand(uget_platform(ucreate_treeuremove_tree(u*(uget_python_version(ulogcBs�|EeZdZdZd4ddde�fddd	d
fdd3dd
fd5d6d7d8d9d:d;d<d=g
ZddddgZd%d&�Zd'd(�Z	d)d*�Z
d+d,�Zd3d-d.�Zd/d0�Z
d1d2�Zd3S(>u
bdist_wininstu-create an executable installer for MS Windowsu
bdist-dir=u1temporary directory for creating the distributionu
plat-name=upu;platform name to embed in generated filenames (default: %s)u	keep-tempuku/keep the pseudo-installation tree around after u!creating the distribution archiveutarget-version=u!require a specific python versionu on the target systemuno-target-compileucu/do not compile .py to .pyc on the target systemuno-target-optimizeuou:do not compile .py to .pyo (optimized)on the target systemu	dist-dir=udu-directory to put final built distributions inubitmap=ubu>bitmap to use for the installer instead of python-powered logoutitle=utu?title to display on the installer background instead of defaultu
skip-buildu2skip rebuilding everything (for testing/debugging)uinstall-script=uTbasename of installation script to be run afterinstallation or before deinstallationupre-install-script=u{Fully qualified filename of a script to be run before any files are installed.  This script need not be in the distributionuuser-access-control=u�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(uNoneu	bdist_diru	plat_nameu	keep_tempuno_target_compileuno_target_optimizeutarget_versionudist_dirubitmaputitleu
skip_builduinstall_scriptupre_install_scriptuuser_access_control(uself((uD/opt/alt/python33/lib64/python3.3/distutils/command/bdist_wininst.pyuinitialize_options:s												u bdist_wininst.initialize_optionscCs\|jdd	�|jdkr|jrR|jrR|jjd�}|j|_n|jd�j}t	j
j|d�|_n|js�d|_n|jr�|jj
�r�t�}|jr�|j|kr�td|f��n||_n|jdd
d�|jrXxI|jjD]%}|jt	j
j|�krPqqWtd|j��ndS(Nubdistu
skip_builduwininstuuMtarget version can only be %s, or the '--skip-build' option must be specifiedudist_diru	plat_nameu(install_script '%s' not found in scripts(u
skip_buildu
skip_build(udist_dirudist_dir(u	plat_nameu	plat_name(uset_undefined_optionsu	bdist_diruNoneu
skip_buildu	plat_nameudistributionuget_command_objuget_finalized_commandu
bdist_baseuosupathujoinutarget_versionuhas_ext_modulesuget_python_versionuDistutilsOptionErroruinstall_scriptuscriptsubasename(uselfubdistu
bdist_baseu
short_versionuscript((uD/opt/alt/python33/lib64/python3.3/distutils/command/bdist_wininst.pyufinalize_optionsJs4				ubdist_wininst.finalize_optionsc
Cs�tjdkr<|jj�s-|jj�r<td��n|jsU|jd�n|jddd�}|j	|_
|j|_d|_|j|_|jd�}d|_
d|_|jj�rE|j}|s|js�td	��tjdd
�}nd|j|f}|jd�}tjj|jd|�|_nxGdD]?}|j�}|dkrw|d}nt|d||�qLWtjd|j	�|j�tjjdtjj|j	d��|j�tjd=ddlm }|�}	|jj!�}
|j"|	dd|j	�}|j#||
|j$�|jj�rYt%�}nd}|jj&j'd||j(|
�f�tj)d|�tj*|�|j+s�t,|j	d|j-�ndS(Nuwin32u^distribution contains extensions and/or C libraries; must be compiled on a Windows 32 platformubuilduinstallureinit_subcommandsiiuinstall_libu Should have already checked thisiu.%s-%sulibupurelibuplatlibuheadersuscriptsudatau/Include/$dist_nameuinstall_uinstalling to %suPURELIB(umktempuzipuroot_diruanyu
bdist_wininsturemoving temporary file '%s'udry_run(upurelibuplatlibuheadersuscriptsudata(.usysuplatformudistributionuhas_ext_modulesuhas_c_librariesuDistutilsPlatformErroru
skip_buildurun_commandureinitialize_commandu	bdist_dirurootuwarn_diru	plat_nameucompileuoptimizeutarget_versionuAssertionErroruversionuget_finalized_commanduosupathujoinu
build_baseu	build_libuupperusetattruloguinfouensure_finalizeduinserturunutempfileumktempuget_fullnameumake_archiveu
create_exeubitmapuget_python_versionu
dist_filesuappenduget_installer_filenameudebuguremoveu	keep_tempuremove_treeudry_run(
uselfuinstalluinstall_libutarget_versionuplat_specifierubuildukeyuvalueumktempuarchive_basenameufullnameuarcnameu	pyversion((uD/opt/alt/python33/lib64/python3.3/distutils/command/bdist_wininst.pyurunpsf					


%

	
	ubdist_wininst.runc	Cs�g}|jj}|jd�|jp+dd}dd�}x~dddd	d
ddd
gD]^}t||d�}|r]|d|j�||�f}|jd|||�f�q]q]W|jd�|jr�|jd|j�n|jd||��|jd|j�|jd|j�|j	rM|jd|j	�n|j
rm|jd|j
�n|jp�|jj�}|jd||��ddl
}ddl}	d|j|j
��|	jf}
|jd|
�dj|�S(Nu
[metadata]uu
cSs|jdd�S(Nu
u\n(ureplace(us((uD/opt/alt/python33/lib64/python3.3/distutils/command/bdist_wininst.pyuescape�su)bdist_wininst.get_inidata.<locals>.escapeuauthoruauthor_emailudescriptionu
maintainerumaintainer_emailunameuurluversionu
    %s: %su%s=%su
[Setup]uinstall_script=%suinfo=%sutarget_compile=%dutarget_optimize=%dutarget_version=%suuser_access_control=%sutitle=%siuBuilt %s with distutils-%su
build_info=%s(udistributionumetadatauappendulong_descriptionugetattru
capitalizeuinstall_scriptuno_target_compileuno_target_optimizeutarget_versionuuser_access_controlutitleuget_fullnameutimeu	distutilsuctimeu__version__ujoin(uselfulinesumetadatauinfouescapeunameudatautitleutimeu	distutilsu
build_info((uD/opt/alt/python33/lib64/python3.3/distutils/command/bdist_wininst.pyuget_inidata�s<
$
			ubdist_wininst.get_inidatac
Cs�ddl}|j|j�|j�}|j|�}|jd|�|rrt|d�j�}t|�}nd}t|d�}	|	j	|j
��|r�|	j	|�nt|t�r�|j
d�}n|d}|jr+t|jddd	��}
|
j�j
d	�}WdQX||d
}n
|d}|	j	|�|jddt|�|�}|	j	|�|	j	t|d�j��dS(
Niucreating %surbuwbumbcssuruencodingulatin-1s
u<iiii{V4(ustructumkpathudist_diruget_inidatauget_installer_filenameuannounceuopenureadulenuwriteu
get_exe_bytesu
isinstanceustruencodeupre_install_scriptupack(
uselfuarcnameufullnameubitmapustructucfgdatauinstaller_nameu
bitmapdatau	bitmaplenufileuscriptuscript_datauheader((uD/opt/alt/python33/lib64/python3.3/distutils/command/bdist_wininst.pyu
create_exe�s:
	

			
ubdist_wininst.create_execCs`|jr7tjj|jd||j|jf�}n%tjj|jd||jf�}|S(Nu%s.%s-py%s.exeu	%s.%s.exe(utarget_versionuosupathujoinudist_diru	plat_name(uselfufullnameuinstaller_name((uD/opt/alt/python33/lib64/python3.3/distutils/command/bdist_wininst.pyuget_installer_filename$s	u$bdist_wininst.get_installer_filenamecCsddlm}t�}|jrm|j|krm|j|krL|�}qv|jdkrdd}qvd}n	|�}tjjt�}|jdkr�|jdd�dkr�|jdd�}nd	}tjj	|d
||f�}t
|d�}z|j�SWd|j�XdS(Ni(uget_build_versionu2.4g@gffffff@uwin32iuwinuuwininst-%.1f%s.exeurb(
udistutils.msvccompileruget_build_versionuget_python_versionutarget_versionuosupathudirnameu__file__u	plat_nameujoinuopenureaduclose(uselfuget_build_versionucur_versionubvu	directoryusfixufilenameuf((uD/opt/alt/python33/lib64/python3.3/distutils/command/bdist_wininst.pyu
get_exe_bytes1s$					(ubdist_wininst.get_exe_bytesN(u
bdist-dir=Nu1temporary directory for creating the distribution(uno-target-compileucu/do not compile .py to .pyc on the target system(uno-target-optimizeuou:do not compile .py to .pyo (optimized)on the target system(u	dist-dir=udu-directory to put final built distributions in(ubitmap=ubu>bitmap to use for the installer instead of python-powered logo(utitle=utu?title to display on the installer background instead of default(u
skip-buildNu2skip rebuilding everything (for testing/debugging)(uinstall-script=NuTbasename of installation script to be run afterinstallation or before deinstallation(upre-install-script=Nu{Fully qualified filename of a script to be run before any files are installed.  This script need not be in the distribution(uuser-access-control=Nu�specify Vista's UAC handling - 'none'/default=no handling, 'auto'=use UAC if target Python installed for all users, 'force'=always use UAC(u__name__u
__module__u__qualname__udescriptionuNoneuget_platformuuser_optionsuboolean_optionsuinitialize_optionsufinalize_optionsurunuget_inidatau
create_exeuget_installer_filenameu
get_exe_bytes(u
__locals__((uD/opt/alt/python33/lib64/python3.3/distutils/command/bdist_wininst.pyu
bdist_wininstsN
			&Q.5
u
bdist_wininst(u__doc__usysuosudistutils.coreuCommandudistutils.utiluget_platformudistutils.dir_utilucreate_treeuremove_treeudistutils.errorsudistutils.sysconfiguget_python_versionu	distutilsulogu
bdist_wininst(((uD/opt/alt/python33/lib64/python3.3/distutils/command/bdist_wininst.pyu<module>s