Your IP : 18.191.120.103


Current Path : /opt/alt/python34/lib64/python3.4/distutils/command/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/distutils/command/__pycache__/bdist.cpython-34.pyo

�
i fp�@sbdZddlZddlmZddlTddlmZdd�ZGdd	�d	e�ZdS)
zidistutils.command.bdist

Implements the Distutils 'bdist' command (create a built [binary]
distribution).�N)�Command)�*)�get_platformcCslddlm}g}x6tjD]+}|jd|dtj|df�q W||�}|jd�dS)zFPrint list of available formats (arguments to "--format" option).
    r)�FancyGetoptzformats=N�z'List of available distribution formats:)Zdistutils.fancy_getoptr�bdist�format_commands�append�format_commandZ
print_help)r�formats�formatZpretty_printer�r
�</opt/alt/python34/lib64/python3.4/distutils/command/bdist.py�show_formatssrc	@s�eZdZdZd4ddde�fd5d6d7d8d9gZdgZdd	defgZd:Z	idd6dd6Z
ddddd d!dd"gZid;d6d<d6d=d6d>d6d?d 6d@d!6dAd6dBd"6Zd.d/�Z
d0d1�Zd2d3�Zd	S)Crz$create a built (binary) distribution�bdist-base=�b�4temporary directory for creating built distributionsz
plat-name=�pz;platform name to embed in generated filenames (default: %s)�formats=N�/formats for distribution (comma-separated list)�	dist-dir=�d�=directory to put final built distributions in [default: dist]�
skip-build�2skip rebuilding everything (for testing/debugging)�owner=�u�@Owner name used when creating a tar file [default: current user]�group=�g�AGroup name used when creating a tar file [default: current group]zhelp-formatsz$lists available distribution formats�	bdist_rpmZgztar�posix�zip�ntZrpmZbztarZztarZtarZwininstZmsi�RPM distribution�
bdist_dumb�gzip'ed tar file�bzip2'ed tar file�compressed tar file�tar file�
bdist_wininst�Windows executable installer�ZIP file�	bdist_msi�Microsoft InstallercCsCd|_d|_d|_d|_d|_d|_d|_dS)Nr)�
bdist_base�	plat_namer�dist_dir�
skip_build�group�owner)�selfr
r
r�initialize_optionsPs						zbdist.initialize_optionscCs|jdkr?|jr't�|_q?|jd�j|_n|jdkr�|jd�j}tjj|d|j�|_n|j	d�|j
dkr�y|jtjg|_
Wq�t
k
r�tdtj��Yq�Xn|jdkr�d|_ndS)NZbuildzbdist.rz;don't know how to create built distributions on platform %sZdist)r1r3rZget_finalized_commandr0�
build_base�os�path�joinZensure_string_listr�default_format�name�KeyErrorZDistutilsPlatformErrorr2)r6r8r
r
r�finalize_optionsYs$	

zbdist.finalize_optionscCsg}xR|jD]G}y|j|j|d�Wqtk
rVtd|��YqXqWx�tt|j��D]�}||}|j|�}||jkr�|j||_	n|dkr�|j
|_
|j|_n|||dd�kr�d|_n|j
|�qqWdS)Nrzinvalid format '%s'r&r)rr	r
r>ZDistutilsOptionError�range�lenZreinitialize_command�no_format_optionrr5r4Z	keep_tempZrun_command)r6Zcommandsr�iZcmd_nameZsub_cmdr
r
r�runus"

z	bdist.run)rrr)rNr)rrr)rNr)rrr)rrr )r!)r!r%)�
bdist_dumbr')rEr()rEr))rEr*)r+r,)rEr-)r.r/)�__name__�
__module__�__qualname__ZdescriptionrZuser_optionsZboolean_optionsrZhelp_optionsrBr<rr
r7r?rDr
r
r
rrsH
		



	r)	�__doc__r9Zdistutils.corerZdistutils.errorsZdistutils.utilrrrr
r
r
r�<module>s


?>