Mini Shell

Direktori : /lib64/python3.9/distutils/command/__pycache__/
Upload File :
Current File : //lib64/python3.9/distutils/command/__pycache__/bdist.cpython-39.pyc

a

�DOg��@sHdZddlZddlmZddlTddlmZdd�ZGdd	�d	e�ZdS)
zidistutils.command.bdist

Implements the Distutils 'bdist' command (create a built [binary]
distribution).�N)�Command)�*)�get_platformcCsPddlm}g}tjD]"}|�d|dtj|df�q||�}|�d�dS)zFPrint list of available formats (arguments to "--format" option).
    r)�FancyGetopt�formats=N�z'List of available distribution formats:)Zdistutils.fancy_getoptr�bdist�format_commands�append�format_command�
print_help)r�formats�formatZpretty_printer�r�//usr/lib64/python3.9/distutils/command/bdist.py�show_formatss
�rc
@s�eZdZdZdddde�fdddd	d
gZdgZdd
defgZdZ	ddd�Z
gd�Zdddddddddd�	Zdd�Z
dd �Zd!d"�Zd
S)#rz$create a built (binary) distribution)zbdist-base=�bz4temporary directory for creating built distributionsz
plat-name=�pz;platform name to embed in generated filenames (default: %s))rNz/formats for distribution (comma-separated list))z	dist-dir=�dz=directory to put final built distributions in [default: dist])�
skip-buildNz2skip rebuilding everything (for testing/debugging))zowner=�uz@Owner name used when creating a tar file [default: current user])zgroup=�gzAGroup name used when creating a tar file [default: current group]rzhelp-formatsNz$lists available distribution formats)�	bdist_rpm�gztar�zip)�posix�nt)	Zrpmr�bztar�xztarZztar�tarZwininstrZmsi)rzRPM distribution)�
bdist_dumbzgzip'ed tar file)r zbzip2'ed tar file)r zxz'ed tar file)r zcompressed tar file)r ztar file)Z
bdist_wininstzWindows executable installer)r zZIP file)Z	bdist_msizMicrosoft InstallercCs.d|_d|_d|_d|_d|_d|_d|_dS)Nr)�
bdist_base�	plat_namer
�dist_dir�
skip_build�group�owner)�selfrrr�initialize_optionsQszbdist.initialize_optionscCs�|jdur(|jrt�|_n|�d�j|_|jdurT|�d�j}tj�|d|j�|_|�	d�|j
dur�z|jtjg|_
Wn t
y�tdtj��Yn0|jdur�d|_dS)NZbuildzbdist.r
z;don't know how to create built distributions on platform %s�dist)r"r$rZget_finalized_commandr!�
build_base�os�path�joinZensure_string_listr
�default_format�name�KeyErrorZDistutilsPlatformErrorr#)r'r*rrr�finalize_optionsZs*


�

��

zbdist.finalize_optionsc	Cs�g}|jD]<}z|�|j|d�Wq
tyDtd|��Yq
0q
tt|j��D]h}||}|�|�}||jvr�|j||_	|dkr�|j
|_
|j|_|||dd�vr�d|_|�
|�qVdS)Nrzinvalid format '%s'r r)r
r
rr0ZDistutilsOptionError�range�lenZreinitialize_command�no_format_optionrr&r%Z	keep_tempZrun_command)r'�commandsr�iZcmd_nameZsub_cmdrrr�runvs"


z	bdist.run)�__name__�
__module__�__qualname__�descriptionrZuser_optionsZboolean_optionsrZhelp_optionsr4r.r	rr(r1r7rrrrrsH�������
	r)	�__doc__r+Zdistutils.corerZdistutils.errorsZdistutils.utilrrrrrrr�<module>s

Zerion Mini Shell 1.0