� !A?h� � �T � d Z ddlZddlmZ ddlT ddlmZ d� Z G d� de� � ZdS ) zidistutils.command.bdist Implements the Distutils 'bdist' command (create a built [binary] distribution).� N)�Command)�*)�get_platformc �� � ddl m} g }t j D ]3}|� d|z dt j | d f� � �4 | |� � }|� 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_printers �D/opt/alt/python-internal/lib64/python3.11/distutils/command/bdist.py�show_formatsr s� � � 3�2�2�2�2�2��G��'� :� :����� �V�+�T��,�V�4�Q�7�9� :� :� :� :� �[��)�)�N����G�H�H�H�H�H� c � � e Zd ZdZdddd e� � z fdddd d gZdgZdd defgZdZ ddd�Z g d�Zdddddddd�Zd� Z d� Zd� 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)�rpmr �bztar�xztar�ztar�tarr )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)r' zZIP filec �h � d | _ d | _ d | _ d | _ d| _ d | _ d | _ d S )Nr )� bdist_base� plat_namer �dist_dir� skip_build�group�owner)�selfs r �initialize_optionszbdist.initialize_optionsL s7 � ������������ ������ ��� � � r c � � | j �:| j rt � � | _ n| � d� � j | _ | j �G| � d� � j }t j � |d| j z � � | _ | � d� � | j �I | j t j g| _ n*# t $ r t dt j z � � �w xY w| j � d| _ d S d S )N�buildzbdist.r z;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/ r5 s r �finalize_optionszbdist.finalize_optionsU s � ��>�!��� O�!-������!%�!;�!;�G�!D�!D�!N��� �?�"��3�3�G�<�<�G�J� �g�l�l�:�+3�d�n�+D�F� F�D�O� ��� �*�*�*��<�� 2� $� 3�B�G� <�=������ 2� 2� 2�,�'�)+��1�2� 2� 2� 2���� �=� �"�D�M�M�M� !� s �-C �'C2c �� � g }| j D ]I} |� | j | d � � �*# t $ r t d|z � � �w xY wt t | j � � � � D ]�}|| }| � |� � }|| j vr| j | |_ |dk r| j |_ | j |_ |||dz d � v rd|_ | � |� � ��d S )Nr zinvalid format '%s'r' r )r r r r<