관리-도구
편집 파일: bdist.cpython-39.opt-2.pyc
a �����DOg�����������������������@���sD���d�dl�Z�d�dlmZ�d�dlT�d�dlmZ�dd��ZG�dd��de�ZdS�) �����N)�Command)�*)�get_platformc������������������C���sP���ddl�m}��g�}tjD�]"}|�d|�d�tj|�d�f��q|�|�}|�d��d�S�)Nr���)�FancyGetopt�formats=����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���� �r���c���������������� ���@���s����e�Zd�ZdZdddde���fdddd d gZdgZdd defgZdZ ddd�Z g�d�Zdddddddddd� Zdd��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))r���Nz/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]r���zhelp-formatsNz$lists available distribution formats)� bdist_rpm�gztar�zip)�posix�nt) Zrpmr����bztar�xztarZztar�tarZwininstr���Zmsi)r���zRPM 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 Installerc�����������������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�u�r(|�jrt��|�_�n|��d�j�|�_�|�jd�u�rT|��d�j}tj�|d|�j���|�_|�� d��|�j d�u�r�z|�jtj�g|�_ W�n �t y����tdtj���Y�n0�|�jd�u�r�d|�_d�S�)NZbuildzbdist.r ���z;don't know how to create built distributions on platform %s�dist)r"���r$���r���Zget_finalized_commandr!���� build_base�os�path�joinZensure_string_listr ����default_format�name�KeyErrorZDistutilsPlatformErrorr#���)r'���r*���r���r���r����finalize_optionsZ���s*���� � �� zbdist.finalize_optionsc�������������� ���C���s����g�}|�j�D�]<}z|�|�j|�d���W�q �tyD���td|���Y�q 0�q tt|�j���D�]h}||�}|��|�}||�jvr�|�j�|�|_ |dkr�|�j |_ |�j|_|||d�d���v�r�d|_|�� |��qVd�S�)Nr���zinvalid format '%s'r ���r���)r ���r ���r���r0���ZDistutilsOptionError�range�lenZreinitialize_command�no_format_optionr���r&���r%���Z keep_tempZrun_command)r'����commandsr����iZcmd_nameZsub_cmdr���r���r����runv���s"���� z bdist.run)�__name__� __module__�__qualname__�descriptionr���Zuser_optionsZboolean_optionsr���Zhelp_optionsr4���r.���r ���r���r(���r1���r7���r���r���r���r���r������sH���������� r���)r+���Zdistutils.corer���Zdistutils.errorsZdistutils.utilr���r���r���r���r���r���r����<module>���s ���