AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/setuptools/_distutils/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/setuptools/_distutils/command/__pycache__/install.cpython-310.pyc
o

�_�a*q�
@shdZddlZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZdd	lmZmZmZdd
lmZddlmZddlmZdd
lmZdZdddddd�Zdddddd�dddddd�edddddd�dddddd�d�Zer�dddd d!d�ed"<ddd#d$d!d�ed%<dZd&d'�Zd(d)�Z d*d+�Z!Gd,d-�d-e	�Z"dS).zFdistutils.command.install

Implements the Distutils 'install' command.�N)�log)�Command)�DEBUG)�get_config_vars)�DistutilsPlatformError)�
write_file)�convert_path�
subst_vars�change_root)�get_platform)�DistutilsOptionError)�	USER_BASE)�	USER_SITETz{base}/Lib/site-packagesz{base}/Include/{dist_name}z{base}/Scriptsz{base})�purelib�platlib�headers�scripts�datazA{base}/lib/{implementation_lower}{py_version_short}/site-packageszN{platbase}/{platlibdir}/{implementation_lower}{py_version_short}/site-packageszM{base}/include/{implementation_lower}{py_version_short}{abiflags}/{dist_name}z
{base}/binz!{base}/lib/{implementation_lower}z*{base}/{platlibdir}/{implementation_lower}z1{base}/include/{implementation_lower}/{dist_name}z{base}/site-packagesz{base}/include/{dist_name})�posix_prefix�
posix_home�nt�pypy�pypy_ntz
{usersite}zA{userbase}/{implementation}{py_version_nodot}/Include/{dist_name}z5{userbase}/{implementation}{py_version_nodot}/Scriptsz
{userbase}�nt_userzQ{userbase}/include/{implementation_lower}{py_version_short}{abiflags}/{dist_name}z{userbase}/bin�
posix_usercCs@t�t��dd�t��D�Wd�S1swYdS)NcSsi|]
}|tj|dd��qS)F)�expand)�	sysconfig�	get_paths��.0�scheme�r!�G/usr/lib/python3/dist-packages/setuptools/_distutils/command/install.py�
<dictcomp>\s��z+_load_sysconfig_schemes.<locals>.<dictcomp>)�
contextlib�suppress�AttributeErrorr�get_scheme_namesr!r!r!r"�_load_sysconfig_schemesZs
�$�r(cs(t�pi��fdd�tt�t���D�S)z=
    Extend default schemes with schemes from sysconfig.
    cs*i|]}|it�|i����|i���qSr!)�INSTALL_SCHEMES�getr��sysconfig_schemesr!r"r#is�
�
��z!_load_schemes.<locals>.<dictcomp>)r(�set�	itertools�chainr)r!r!r+r"�
_load_schemesbs

�r0cCsttd�rdSdS)N�pypy_version_info�PyPy�Python)�hasattr�sysr!r!r!r"�_get_implementationrs
r6c@seZdZdZgd�Zgd�Zere�dddef�e�d�ddiZ	d	d
�Z
dd�Zd
d�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd1d2�Zd3efd4efd5efd6efd7d8d9�fgZdS):�installz'install everything from build directory))zprefix=Nzinstallation prefix)zexec-prefix=Nz.(Unix only) prefix for platform-specific files)zhome=Nz+(Unix only) home directory to install under)z
install-base=Nz;base installation directory (instead of --prefix or --home))zinstall-platbase=Nz\base installation directory for platform-specific files (instead of --exec-prefix or --home))zroot=Nz<install everything relative to this alternate root directory)zinstall-purelib=Nz;installation directory for pure Python module distributions)zinstall-platlib=Nz8installation directory for non-pure module distributions)zinstall-lib=Nzginstallation directory for all module distributions (overrides --install-purelib and --install-platlib))zinstall-headers=Nz(installation directory for C/C++ headers)zinstall-scripts=Nz)installation directory for Python scripts)z
install-data=Nz%installation directory for data files)�compile�czcompile .py to .pyc [default])�
no-compileNzdon't compile .py files)z	optimize=�Ozlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])�force�fz1force installation (overwrite any existing files))�
skip-buildNz2skip rebuilding everything (for testing/debugging))zrecord=Nz3filename in which to record list of installed files)r8r<r>�userNz!install in user site-package '%s'r:r8cCs�d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_t
|_t|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_dS)zInitializes options.Nr�)�prefix�exec_prefix�homer?�install_base�install_platbase�root�install_purelib�install_platlib�install_headers�install_lib�install_scripts�install_datar
�install_userbaser�install_usersiter8�optimize�
extra_path�install_path_filer<�
skip_build�warn_dir�
build_base�	build_lib�record��selfr!r!r"�initialize_options�s2
zinstall.initialize_optionscCs�|js	|js	|jr|js|jrtd��|jr |js|jr td��|jr6|js2|js2|js2|js2|jr6td��tjdkrF|jrF|�	d�d|_|�
d�tjdkrU|��n|��|�
d�t
j��d	}td
d�\}}zt
j}Wnty|d}Ynw|j��|j��|j��|d
t
jdd�dt
jdd�|||||tt
dd�t���t�d�|_tr�|j|jd<|j|jd<|��|�
d�|j|jd<|j|jd<t ��d|jd<t!r�d	dl"m"}t#d�||j�|�$�|�
d�|jr�|�%�|j&du�r|j�'��r|j(|_&n|j)|_&|�*dddddd dd�|�+�|j&|_,tj-�.|j&|j/�|_&|j0du�r?|�1d!dddddd �|�
d"�|�2d#d$d%�dS)&zFinalizes options.zWmust supply either prefix/exec-prefix/home or install-base/install-platbase -- not bothz9must supply either home or prefix/exec-prefix -- not bothzGcan't combine user with prefix, exec_prefix/home, or install_(plat)base�posixz+exec-prefix option ignored on this platformNzpre-finalize_{unix,other}zpost-finalize_{unix,other}()rrArB�z%d.%d�z%d%d�
platlibdir�lib)�	dist_name�dist_version�
dist_fullname�
py_version�py_version_short�py_version_nodot�
sys_prefixrA�sys_exec_prefixrB�abiflagsr]�implementation_lower�implementation�userbase�usersitezpost-expand_basedirs()�base�platbase�installed_base)�pprintzconfig vars:zpost-expand_dirs()rrrrr�libbasezafter prepending root�build)rTrT)rUrU)3rArBrCrDrErr?�os�name�warn�	dump_dirs�
finalize_unix�finalize_otherr5�version�splitrrgr&�distribution�get_name�get_version�get_fullname�version_info�getattrr6�lower�config_vars�
HAS_USER_SITErMrN�expand_basedirsrrro�print�expand_dirs�create_home_pathrJ�has_ext_modulesrHrG�
convert_paths�handle_extra_path�install_libbase�path�join�
extra_dirsrF�change_roots�set_undefined_options)rXrbrArBrgror!r!r"�finalize_optionss�������







�
�

�



�	�
�zinstall.finalize_optionscCs�tsdSddlm}t�|d�|jD]9}|d}|ddkr&|dd�}||jvr<|j|}|�|�}t||�}n
|�|�}t||�}t�d||�qdS)zDumps the list of user options.Nr)�
longopt_xlate�:����=z  %s: %s)	r�distutils.fancy_getoptr�r�debug�user_options�negative_opt�	translater)rX�msgr��opt�opt_name�valr!r!r"ru�s 





�zinstall.dump_dirscCs8|jdus
|jdur.|jdur|jdur|jdus(|jdus(|jdus(|jdur,td��dS|j	rH|j
dur:td��|j
|_|_|�d�dS|j
dur[|j
|_|_|�d�dS|jdur�|jduritd��ttdd�}tj�tj�||_tj�tj�||_n	|jdur�|j|_|j|_|j|_|�d	�dS)
z&Finalizes options for posix platforms.NzPinstall-base or install-platbase supplied, but installation scheme is incomplete�$User base directory is not specifiedrrz*must not supply exec-prefix without prefix�_prefix_additionr[r)rDrErJrGrHrIrKrLrr?rMr�
select_schemerCrArBrrrrr��normpathr5)rXr�r!r!r"rv�sH





�
�


���
zinstall.finalize_unixcCs�|jr|jdurtd��|j|_|_|�tjd�dS|jdur0|j|_|_|�d�dS|j	dur=tj
�tj	�|_	|j	|_|_z	|�tj�WdSt
y[tdtj��w)z)Finalizes options for non-posix platformsNr��_userrz)I don't know how to install stuff on '%s')r?rMrrDrEr�rrrsrCrAr�r�r5�KeyErrorrWr!r!r"rw�s(
�

��zinstall.finalize_othercCspttd�rtjdkr|�d�stjdkrd}nd}t�|}tD]}d|}t||�dur5t	||||�q dS)	z=Sets the install directories by applying the install schemes.r1)��)r��_homerrr�install_N)
r4r5r~�endswithrrrsr0�SCHEME_KEYSr�setattr)rXrsr �key�attrnamer!r!r"r�s

�

��zinstall.select_schemecCsX|D]'}t||�}|dur)tjdkstjdkrtj�|�}t||j�}t|||�qdS)NrZr)rrrrsr��
expanduserr	r�r�)rX�attrs�attrr�r!r!r"�
_expand_attrss
��zinstall._expand_attrscC�|�gd��dS)zNCalls `os.path.expanduser` on install_base, install_platbase and
        root.)rDrErFN�r�rWr!r!r"r�szinstall.expand_basedirscCr�)z+Calls `os.path.expanduser` on install dirs.)rGrHrJrIrKrLNr�rWr!r!r"r�szinstall.expand_dirscGs,|D]}d|}t||tt||���qdS)z!Call `convert_path` over `names`.r�N)r�rr�rX�namesrsr�r!r!r"r�$s�zinstall.convert_pathscCs�|jdur
|jj|_|jdurFt�d�t|jt�r!|j�d�|_t|j�dkr0|jd}}nt|j�dkr=|j\}}ntd��t	|�}nd}d}||_
||_dS)	z4Set `path_file` and `extra_dirs` using `extra_path`.NzIDistribution option extra_path is deprecated. See issue27919 for details.�,r@rr\zY'extra_path' option must be a list, tuple, or comma-separated string with 1 or 2 elementsr[)rPrzrrt�
isinstance�strry�lenrr�	path_filer�)rXr�r�r!r!r"r�*s(


��

zinstall.handle_extra_pathc	Gs0|D]}d|}t||t|jt||���qdS)z:Change the install directories pointed by name using root.r�N)r�r
rFrr�r!r!r"r�Ls�zinstall.change_rootscCsb|jsdSttj�d��}|j��D]\}}|�|�r.tj�|�s.|�	d|�t�
|d�qdS)zCreate directories under ~.N�~zos.makedirs('%s', 0o700)i�)r?rrrr�r�r��items�
startswith�isdir�debug_print�makedirs)rXrCrsr�r!r!r"r�Rs��zinstall.create_home_pathcCs&|js|�d�|j�d�j}|jr|t�krtd��|��D]}|�|�q|j	r.|�
�|jr]|��}|j
rPt|j
�}tt|��D]}|||d�||<qC|�t|j|fd|j�ttjjtj�}ttjj|�}tj�tj�|j��}|jr�|j	r�|js�||vr�t�d|j�dSdSdSdS)zRuns the command.rqz"Can't install when cross-compilingNz'writing list of installed files to '%s'z�modules installed to '%s', which is not in Python's module search path (sys.path) -- you'll have to change the search path yourself)rR�run_commandrz�get_command_obj�	plat_namerSrr�get_sub_commandsr��create_path_filerV�get_outputsrFr��range�executer�maprrr�r�r5�normcaserJrQrr�)rX�
build_plat�cmd_name�outputs�root_len�counter�sys_pathrJr!r!r"�run^sH

�������zinstall.runcCsLtj�|j|jd�}|jr|�t||jgfd|�dS|�	d|�dS)zCreates the .pth file�.pthzcreating %szpath file '%s' not createdN)
rrr�r�r�r�rQr�rr�rt)rX�filenamer!r!r"r��s
�
�zinstall.create_path_filecCshg}|��D]}|�|�}|��D]}||vr|�|�qq|jr2|jr2|�tj�|j	|jd��|S)z.Assembles the outputs of all the sub-commands.r�)
r��get_finalized_commandr��appendr�rQrrr�r�r�)rXr�r��cmdr�r!r!r"r��s

���zinstall.get_outputscCs.g}|��D]}|�|�}|�|���q|S)z*Returns the inputs of all the sub-commands)r�r��extend�
get_inputs)rX�inputsr�r�r!r!r"r��s

zinstall.get_inputscCs|j��p	|j��S)zSReturns true if the current distribution has any Python
        modules to install.)rz�has_pure_modulesr�rWr!r!r"�has_lib�s
�zinstall.has_libcC�
|j��S)zLReturns true if the current distribution has any headers to
        install.)rz�has_headersrWr!r!r"r���
zinstall.has_headerscCr�)zMReturns true if the current distribution has any scripts to.
        install.)rz�has_scriptsrWr!r!r"r��r�zinstall.has_scriptscCr�)zJReturns true if the current distribution has any data to.
        install.)rz�has_data_filesrWr!r!r"�has_data�r�zinstall.has_datarJrIrKrL�install_egg_infocCsdS)NTr!rWr!r!r"�<lambda>�szinstall.<lambda>) �__name__�
__module__�__qualname__�descriptionr��boolean_optionsr�r�rr�rYr�rurvrwr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��sub_commandsr!r!r!r"r7ysL;�
N-	",
�r7)#�__doc__r5rrr$rr.�	distutilsr�distutils.corer�distutils.debugr�distutils.sysconfigr�distutils.errorsr�distutils.file_utilr�distutils.utilrr	r
rr�siter
rr��WINDOWS_SCHEMEr)r�r(r0r6r7r!r!r!r"�<module>s��
�����!
�	
�

Anon7 - 2022
AnonSec Team