Hacked By AnonymousFox
�
c��f=J � �� � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlm Z ddlm
Z
ddlmZ dd lm
Z
dd
lmZ ddlmZ ddlmZ dd
lmZmZ d� Z G d� de� � ZdS )zadistutils.command.sdist
Implements the Distutils 'sdist' command (create a source distribution).� N)�glob)�warn)�Command)�dir_util)� file_util)�archive_util)�TextFile)�FileList)�log)�convert_path)�DistutilsTemplateError�DistutilsOptionErrorc � � ddl m} ddlm} g }|� � � D ])}|� d|z d|| d f� � �*|� � � | |� � � d� � dS )zoPrint all possible values for the 'formats' option (used by
the "--help-formats" command-line option).
r )�FancyGetopt)�ARCHIVE_FORMATS�formats=N� z.List of available source distribution formats:)�distutils.fancy_getoptr �distutils.archive_utilr �keys�append�sort�
print_help)r r �formats�formats �>/opt/alt/python311/lib64/python3.11/distutils/command/sdist.py�show_formatsr s� � � 3�2�2�2�2�2�6�6�6�6�6�6��G�!�&�&�(�(� 5� 5�����
�V�+�T�'��/��2�4� 5� 5� 5� 5��L�L�N�N�N��K����#�#�8�:� :� :� :� :� c �� � e Zd ZdZd� Zg d�Zg d�ZdddefgZdd d
�Z defgZ
dZd
� Zd� Z
d� Zd� Zd� Zd� Zed� � � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd � Z d!� Z!d"� Z"dS )#�sdistz6create a source distribution (tarball, zip file, etc.)c � � | j S )zYCallable used for the check sub-command.
Placed here so user_options can view it)�metadata_check��selfs r �checking_metadatazsdist.checking_metadata( s
� � �"�"r ))z template=�tz5name of manifest template file [default: MANIFEST.in])z manifest=�mz)name of manifest file [default: MANIFEST])�use-defaultsNzRinclude the default file set in the manifest [default; disable with --no-defaults])�no-defaultsNz"don't include the default file set)�pruneNz�specifically exclude files/directories that should not be distributed (build tree, RCS/CVS dirs, etc.) [default; disable with --no-prune])�no-pruneNz$don't automatically exclude anything)�
manifest-only�ozEjust regenerate the manifest and then stop (implies --force-manifest))�force-manifest�fzkforcibly regenerate the manifest and carry on as usual. Deprecated: now the manifest is always regenerated.)r Nz6formats for source distribution (comma-separated list))� keep-temp�kz@keep the distribution tree around after creating archive file(s))z dist-dir=�dzFdirectory to put the source distribution archive(s) in [default: dist])�metadata-checkNz[Ensure that all required elements of meta-data are supplied. Warn if any missing. [default])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( r* r, r. r0 r3 zhelp-formatsNz#list available distribution formatsr( r* )r) r+ �check)�READMEz
README.txtz
README.rstc � � d | _ d | _ d| _ d| _ d| _ d| _ dg| _ d| _ d | _ d | _ d| _
d | _ d | _ d S )N� r �gztar)
�template�manifest�use_defaultsr* �
manifest_only�force_manifestr � keep_temp�dist_dir�
archive_filesr"