AlkantarClanX12

Your IP : 3.22.42.189


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

3

9��fz�@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<|j�|j�|j�|j�|j�|j�|j�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� /usr/lib/python3.6/py36compat.py�add_defaultsszsdist_add_defaults.add_defaultscCs:tjj|�sdStjj|�}tjj|�\}}|tj|�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}x�|D]�}t|t�rn|}d}x(|D] }|j|�r0d}|jj|�Pq0W|s�|jddj	|��q|j|�r�|jj|�q|jd|�qWdS)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_standardscCs8ddg}x*|D]"}ttjjt|��}|jj|�qWdS)Nz
test/test*.pyz	setup.cfg)rrr�isfilerr�extend)rZoptional�pattern�filesrrrrNs
z)sdist_add_defaults._add_defaults_optionalcCsd|jd�}|jj�r$|jj|j��x:|jD]0\}}}}x"|D]}|jjtj	j
||��q>Wq,WdS)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_pythoncCs�|jj�r~xr|jjD]f}t|t�rDt|�}tjj|�rz|j	j
|�q|\}}x,|D]$}t|�}tjj|�rR|j	j
|�qRWqWdS)N)rZhas_data_filesr*r�strrrrr#rr)r�item�dirnamer+�frrrr
ds


z+sdist_add_defaults._add_defaults_data_filescCs(|jj�r$|jd�}|jj|j��dS)N�	build_ext)rZhas_ext_modulesr(rr$r))rr0rrrrus

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

z'sdist_add_defaults._add_defaults_c_libscCs(|jj�r$|jd�}|jj|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|