Hacked By AnonymousFox

Current Path : /opt/alt/python310/lib/python3.10/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib/python3.10/site-packages/setuptools/command/__pycache__/sdist.cpython-310.pyc

o

~�Re�@sxddlmZddlmmZddlZddlZddlZddl	Z	ddl
mZddlZe
Zd
dd�ZGdd	�d	eej�ZdS)�)�logN�)�sdist_add_defaults�ccs.�t�d�D]}|��|�D]}|VqqdS)z%Find all files under revision controlzsetuptools.file_findersN)�
pkg_resources�iter_entry_points�load)�dirname�ep�item�r��/builddir/build/BUILDROOT/alt-python310-setuptools-58.3.0-2.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/setuptools/command/sdist.py�walk_revctrls���rcs�eZdZdZgd�ZiZgd�Zedd�eD��Zdd�Z	dd	�Z
d
d�Zdd
�Ze
ejdd���Z�fdd�Zdd�Zdd�Zdd�Z�fdd�Zdd�Zdd�Zdd�Zd d!�Z�ZS)"�sdistz=Smart sdist that finds anything supported by revision control))zformats=Nz6formats for source distribution (comma-separated list))z	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])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.rstz.txtz.mdccs�|]}d�|�VqdS)z	README{0}N)�format)�.0�extrrr
�	<genexpr>+s�zsdist.<genexpr>cCs�|�d�|�d�}|j|_|j�tj�|jd��|��|�	�D]}|�|�q"|�
�t|jdg�}|j
D]}dd|f}||vrH|�|�q8dS)N�egg_infozSOURCES.txt�
dist_filesrr)�run_command�get_finalized_command�filelist�append�os�path�joinr�check_readme�get_sub_commands�make_distribution�getattr�distributionZ
archive_files)�selfZei_cmd�cmd_namer�file�datarrr
�run-s




��z	sdist.runcCstj�|�|��dS�N)�origr�initialize_options�_default_to_gztar�r&rrr
r-@szsdist.initialize_optionscCstjdkrdSdg|_dS)N)��r�betar�gztar)�sys�version_info�formatsr/rrr
r.Es
zsdist._default_to_gztarcCs:|���tj�|�Wd�dS1swYdS)z%
        Workaround for #516
        N)�_remove_os_linkr,rr#r/rrr
r#Ks
"�zsdist.make_distributionc
csv�Gdd�d�}ttd|�}zt`Wn	tyYnwzdVW||ur-ttd|�dSdS||ur:ttd|�ww)zG
        In a context, remove and restore os.link if it exists
        c@seZdZdS)z&sdist._remove_os_link.<locals>.NoValueN)�__name__�
__module__�__qualname__rrrr
�NoValueYsr;�linkN)r$rr<�	Exception�setattr)r;Zorig_valrrr
r7Rs����zsdist._remove_os_linkcs*t���tj�d�r|j�d�dSdS)Nzpyproject.toml)�super�_add_defaults_optionalrr�isfilerrr/��	__class__rr
r@gs
�zsdist._add_defaults_optionalcCs<|j��r|�d�}|j�|���|�|�|��dSdS)zgetting python files�build_pyN)r%�has_pure_modulesrr�extendZget_source_files�_add_data_files�_safe_data_files�r&rDrrr
�_add_defaults_pythonls


�zsdist._add_defaults_pythoncCs|jjrdS|jS)z�
        Extracting data_files from build_py is known to cause
        infinite recursion errors when `include_package_data`
        is enabled, so suppress it in that case.
        r)r%Zinclude_package_data�
data_filesrIrrr
rHsszsdist._safe_data_filescCs|j�dd�|D��dS)zA
        Add data files as found in build_py.data_files.
        css0�|]\}}}}|D]
}tj�||�Vq
qdSr+)rrr )r�_�src_dir�	filenames�namerrr
r�s�
���z(sdist._add_data_files.<locals>.<genexpr>N)rrF)r&rKrrr
rG}s�zsdist._add_data_filescs0zt���WdStyt�d�YdSw)Nz&data_files contains unexpected objects)r?�_add_defaults_data_files�	TypeErrorr�warnr/rBrr
rP�s
�zsdist._add_defaults_data_filescCs8|jD]}tj�|�rdSq|�dd�|j��dS)Nz,standard file not found: should have one of z, )�READMESrr�existsrRr )r&�frrr
r!�s
�
��zsdist.check_readmecCs^tj�|||�tj�|d�}ttd�r%tj�|�r%t�|�|�	d|�|�
d��|�dS)Nz	setup.cfgr<r)r,r�make_release_treerrr �hasattrrT�unlink�	copy_filerZsave_version_info)r&�base_dir�files�destrrr
rV�s
zsdist.make_release_treecCsTtj�|j�s	dSt�|jd��}|��}Wd�n1swY|d��kS)NF�rbz+# file GENERATED by distutils, do NOT edit
)rrrA�manifest�io�open�readline�encode)r&�fp�
first_linerrr
�_manifest_is_not_generated�s
��z sdist._manifest_is_not_generatedc	Cs�t�d|j�t|jd�}|D],}z|�d�}Wnty(t�d|�Yqw|��}|�d�s4|s5q|j	�
|�q|��dS)z�Read the manifest file (named by 'self.manifest') and use it to
        fill in 'self.filelist', the list of files to include in the source
        distribution.
        zreading manifest file '%s'r]zUTF-8z"%r not UTF-8 decodable -- skipping�#N)r�infor^r`�decode�UnicodeDecodeErrorrR�strip�
startswithrr�close)r&r^�linerrr
�
read_manifest�s�zsdist.read_manifest)r8r9r:�__doc__�user_options�negative_optZREADME_EXTENSIONS�tuplerSr*r-r.r#�staticmethod�
contextlib�contextmanagerr7r@rJrHrGrPr!rVrern�
__classcell__rrrBr
rs,




r)r)�	distutilsrZdistutils.command.sdist�commandrr,rr4r_rtZ
py36compatrr�listZ_default_revctrlrrrrr
�<module>s


Hacked By AnonymousFox1.0, Coded By AnonymousFox