CasperSecurity

Current Path : /usr/lib/python3.10/distutils/command/__pycache__/
Upload File :
Current File : //usr/lib/python3.10/distutils/command/__pycache__/bdist.cpython-310.pyc

o

��bc9�@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:)�distutils.fancy_getoptr�bdist�format_commands�append�format_command�
print_help)r�formats�format�pretty_printer�r�./usr/lib/python3.10/distutils/command/bdist.py�show_formatss
�rc	@s�eZdZdZdddde�fdddd	d
gZdgZdd
defgZdZ	ddd�Z
gd�Zddddddddd�Zdd�Z
dd�Zd d!�Zd
S)"r	z$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)�rpmr�bztar�xztar�ztar�tarr�msi)rzRPM distribution)�
bdist_dumbzgzip'ed tar file)r%zbzip2'ed tar file)r%zxz'ed tar file)r%zcompressed tar file)r%ztar file)r%zZIP file)�	bdist_msizMicrosoft InstallercCs.d|_d|_d|_d|_d|_d|_d|_dS)Nr)�
bdist_base�	plat_namer�dist_dir�
skip_build�group�owner)�selfrrr�initialize_optionsOs
zbdist.initialize_optionscCs�|jdur|jr
t�|_n|�d�j|_|jdur*|�d�j}tj�|d|j�|_|�	d�|j
durMz
|jtjg|_
Wnt
yLtdtj��w|jdurWd|_dSdS)N�buildzbdist.rz;don't know how to create built distributions on platform %s�dist)r(r*r�get_finalized_commandr'�
build_base�os�path�join�ensure_string_listr�default_format�name�KeyError�DistutilsPlatformErrorr))r-r2rrr�finalize_optionsXs.


�

���

�zbdist.finalize_optionsc	Cs�g}|jD]}z|�|j|d�Wqty td|��wtt|j��D]4}||}|�|�}||jvr>|j||_	|dkrJ|j
|_
|j|_|||dd�vrWd|_|�
|�q(dS)Nrzinvalid format '%s'r%r)rrrr9�DistutilsOptionError�range�len�reinitialize_command�no_format_optionrr,r+�	keep_temp�run_command)r-�commandsr�i�cmd_name�sub_cmdrrr�runts&
�

�z	bdist.run)�__name__�
__module__�__qualname__�descriptionr�user_options�boolean_optionsr�help_optionsr@r7r
rr.r;rGrrrrr	sH�������	r	)	�__doc__r3�distutils.corer�distutils.errors�distutils.utilrrr	rrrr�<module>s
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY