Hacked By AnonymousFox

Current Path : /lib/python3.8/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //lib/python3.8/site-packages/setuptools/command/__pycache__/py36compat.cpython-38.pyc

U

�Qabz�@sdddlZddlmZddlmZddlmZddlmZGdd�d�Ze	ejd�r`Gd	d�d�ZdS)
�N)�glob)�convert_path)�sdist)�filterc@s\eZdZdZdd�Zedd��Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dS)�sdist_add_defaultsz�
    Mix-in providing forward-compatibility for functionality as found in
    distutils on Python 3.7.

    Do not edit the code in this class except to update functionality
    as implemented in distutils. Instead, override in the subclass.
    cCs<|��|��|��|��|��|��|��dS)a9Add all the default files to self.filelist:
          - README or README.txt
          - setup.py
          - test/test*.py
          - all pure Python modules mentioned in setup script
          - all files pointed by package_data (build_py)
          - all files defined in data_files.
          - all files defined as scripts.
          - all C sources listed as part of extensions or C libraries
            in the setup script (doesn't catch C headers!)
        Warns if (README or README.txt) or setup.py are missing; everything
        else is optional.
        N)�_add_defaults_standards�_add_defaults_optional�_add_defaults_python�_add_defaults_data_files�_add_defaults_ext�_add_defaults_c_libs�_add_defaults_scripts)�self�r�A/usr/lib/python3.8/site-packages/setuptools/command/py36compat.py�add_defaultsszsdist_add_defaults.add_defaultscCs:tj�|�sdStj�|�}tj�|�\}}|t�|�kS)z�
        Case-sensitive path existence check

        >>> sdist_add_defaults._cs_path_exists(__file__)
        True
        >>> sdist_add_defaults._cs_path_exists(__file__.upper())
        False
        F)�os�path�exists�abspath�split�listdir)�fspathrZ	directory�filenamerrr�_cs_path_exists(s

z"sdist_add_defaults._cs_path_existscCs�|j|jjg}|D]~}t|t�rj|}d}|D]"}|�|�r,d}|j�|�qPq,|s�|�dd�	|��q|�|�r�|j�|�q|�d|�qdS)NFTz,standard file not found: should have one of z, zstandard file '%s' not found)
ZREADMES�distributionZscript_name�
isinstance�tupler�filelist�append�warn�join)rZ	standards�fnZaltsZgot_itrrrr9s"

�
z*sdist_add_defaults._add_defaults_standardscCs4ddg}|D]"}ttjjt|��}|j�|�qdS)Nz
test/test*.pyz	setup.cfg)rrr�isfilerr�extend)rZoptional�pattern�filesrrrrNsz)sdist_add_defaults._add_defaults_optionalcCs\|�d�}|j��r$|j�|���|jD],\}}}}|D]}|j�tj	�
||��q:q*dS)N�build_py)�get_finalized_commandrZhas_pure_modulesrr$�get_source_files�
data_filesrrrr!)rr'ZpkgZsrc_dirZ	build_dir�	filenamesrrrrr	Ts

z'sdist_add_defaults._add_defaults_pythoncCsz|j��rv|jjD]b}t|t�rBt|�}tj�|�rt|j	�
|�q|\}}|D]$}t|�}tj�|�rN|j	�
|�qNqdS)N)rZhas_data_filesr*r�strrrrr#rr)r�item�dirnamer+�frrrr
ds

z+sdist_add_defaults._add_defaults_data_filescCs(|j��r$|�d�}|j�|���dS)N�	build_ext)rZhas_ext_modulesr(rr$r))rr0rrrrus

z$sdist_add_defaults._add_defaults_extcCs(|j��r$|�d�}|j�|���dS)N�
build_clib)rZhas_c_librariesr(rr$r))rr1rrrrzs

z'sdist_add_defaults._add_defaults_c_libscCs(|j��r$|�d�}|j�|���dS)N�
build_scripts)rZhas_scriptsr(rr$r))rr2rrrr
s

z(sdist_add_defaults._add_defaults_scriptsN)�__name__�
__module__�__qualname__�__doc__r�staticmethodrrrr	r
rrr
rrrrr	s
rrc@seZdZdS)rN)r3r4r5rrrrr�s)
rrZdistutils.utilrZdistutils.commandrZsetuptools.extern.six.movesrr�hasattrrrrr�<module>s|

Hacked By AnonymousFox1.0, Coded By AnonymousFox