OwlCyberSecurity - MANAGER
Edit File: bdist.cpython-36.pyc
3 � f�������������������@���sH���d�Z�ddlZddlmZ�ddlT�ddlmZ�dd��ZG�dd ��d e�ZdS�) zidistutils.command.bdist Implements the Distutils 'bdist' command (create a built [binary] distribution).�����N)�Command)�*)�get_platformc��������������C���sT���ddl�m}��g�}x,tjD�]"}|jd|�dtj|�d�f��qW�|�|�}|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/python36/lib64/python3.6/distutils/command/bdist.py�show_formats���s����r���c������������ ���@���s����e�Zd�ZdZd6ddde���fd7d8d9d:d;gZdgZdd defgZd<Z ddd�Z dddddd d!dd"g Zd=d>d?d@dAdBdCdDdEd/� Zd0d1��Z d2d3��Zd4d5��Zd S�)Fr���z$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]zhelp-formatsz$lists available distribution formats� bdist_rpm�gztar�zip)�posix�nt�rpm�bztar�xztar�ztar�tar�wininst�msi�RPM distribution� bdist_dumb�gzip'ed tar file�bzip2'ed tar file�xz'ed tar file�compressed tar file�tar file� bdist_wininst�Windows executable installer�ZIP file� bdist_msi�Microsoft Installer) r&���r"���r'���r(���r)���r*���r+���r#���r,���c�������������C���s.���d�|�_�d�|�_d�|�_d�|�_d|�_d�|�_d�|�_d�S�)Nr���)� bdist_base� plat_namer����dist_dir� skip_build�group�owner)�selfr ���r ���r����initialize_optionsQ���s����zbdist.initialize_optionsc�������������C���s����|�j�d�kr(|�jrt��|�_�n|�jd�j�|�_�|�jd�krT|�jd�j}tjj|d|�j���|�_|�j d��|�j d�kr�y|�jtj�g|�_ W�n"�t k r����tdtj���Y�nX�|�jd�kr�d|�_d�S�)NZbuildzbdist.r���z;don't know how to create built distributions on platform %sZdist)r:���r<���r���Zget_finalized_commandr9���� build_base�os�path�joinZensure_string_listr����default_format�name�KeyErrorZDistutilsPlatformErrorr;���)r?���rA���r ���r ���r����finalize_optionsZ���s$���� zbdist.finalize_optionsc�������������C���s����g�}xH|�j�D�]>}y|j|�j|�d���W�q�tk rH���td|���Y�qX�qW�xztt|�j���D�]h}||�}|�j|�}||�jkr�|�j�|�|_ |dkr�|�j |_ |�j|_|||d�d���kr�d|_|�j |��q^W�d�S�)Nr���zinvalid format '%s'r.���r���)r���r ���r ���rG���ZDistutilsOptionError�range�lenZreinitialize_command�no_format_optionr���r>���r=���Z keep_tempZrun_command)r?���Zcommandsr����iZcmd_nameZsub_cmdr ���r ���r����runv���s"���� z bdist.run)r���r���r���)r���Nr���)r���r���r���)r���Nr���)r���r���r���)r���r���r ���)r!���)r!���r-���)r.���r/���)r.���r0���)r.���r1���)r.���r2���)r.���r3���)r4���r5���)r.���r6���)r7���r8���)�__name__� __module__�__qualname__Zdescriptionr���Zuser_optionsZboolean_optionsr���Zhelp_optionsrK���rE���r���r ���r@���rH���rM���r ���r ���r ���r���r������sJ��������� � r���) �__doc__rB���Zdistutils.corer���Zdistutils.errorsZdistutils.utilr���r���r���r ���r ���r ���r����<module>���s���