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/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/command/__pycache__/develop.cpython-310.pyc
o

�_�ad�@s�ddlmZddlmZddlmZmZddlZddlZddl	Z	ddl
Z
ddlmZddl
mZddl
Z
Gdd�deje�ZGd	d
�d
�ZdS)�)�convert_path)�log)�DistutilsError�DistutilsOptionErrorN)�easy_install)�
namespacesc@sveZdZdZdZejddgZejdgZdZdd�Z	d	d
�Z
dd�Zed
d��Z
dd�Zdd�Zdd�Zdd�ZdS)�developzSet up package for developmentz%install package in 'development mode')�	uninstall�uzUninstall this source package)z	egg-path=Nz-Set the path to be used in the .egg-link filer	FcCs2|jrd|_|��|��n|��|��dS)NT)r	�
multi_version�uninstall_link�uninstall_namespaces�install_for_development�warn_deprecated_options��self�r�</usr/lib/python3/dist-packages/setuptools/command/develop.py�runs
zdevelop.runcCs&d|_d|_t�|�d|_d|_dS)N�.)r	�egg_pathr�initialize_options�
setup_path�always_copy_fromrrrrr%s


zdevelop.initialize_optionscCs|�d�}|jrd}|j|jf}t||��|jg|_t�|�|��|�	�|j
�t�d��|jd}t
j�|j|�|_|j|_|jdurPt
j�|j�|_t�|j�}t�t
j�|j|j��}||krltd|��tj|t�|t
j�|j��|jd�|_|�|j|j|j�|_dS)N�egg_infoz-Please rename %r to %r before using 'develop'z*.eggz	.egg-linkzA--egg-path must be a relative path from the install directory to ��project_name)�get_finalized_command�broken_egg_inforr�egg_name�argsr�finalize_options�expand_basedirs�expand_dirs�
package_index�scan�glob�os�path�join�install_dir�egg_link�egg_baser�abspath�
pkg_resources�normalize_pathr�Distribution�PathMetadata�dist�_resolve_setup_pathr)r�ei�templater �egg_link_fn�targetrrrrr!,sF




����
�zdevelop.finalize_optionscCsn|�tjd��d�}|tjkrd|�d�d}t�tj�	|||��}|t�tj�kr5t
d|t�tj���|S)z�
        Generate a path from egg_base back to '.' where the
        setup script resides and ensure that path points to the
        setup path from $install_dir/$egg_path.
        �/z../�zGCan't get a consistent path to setup script from installation directory)�replacer'�sep�rstrip�curdir�countr.r/r(r)r)r,r*r�
path_to_setup�resolvedrrrr3Ws
�
�zdevelop._resolve_setup_pathcCs�|�d�|jddd�|�d�tjr|�tj�dt_|��t�d|j|j	�|j
sNt|jd��}|�|j
d|j�Wd�n1sIwY|�d|j|j�dS)Nr�	build_extr9)�inplacezCreating %s (link to %s)�w�
)�run_command�reinitialize_command�
setuptools�bootstrap_install_fromr�install_namespacesr�infor+r,�dry_run�open�writerr�process_distributionr2�no_deps)r�frrrrms

�zdevelop.install_for_developmentcCs�tj�|j�r=t�d|j|j�t|j�}dd�|D�}|��||j	g|j	|j
gfvr4t�d|�dS|js=t�
|j�|jsF|�|j�|jjrQt�d�dSdS)NzRemoving %s (link to %s)cSsg|]}|���qSr)r<)�.0�linerrr�
<listcomp>�sz*develop.uninstall_link.<locals>.<listcomp>z$Link points to %s: uninstall abortedz5Note: you must uninstall or replace scripts manually!)r'r(�existsr+rrJr,rL�closerr�warnrK�unlink�
update_pthr2�distribution�scripts)r�
egg_link_file�contentsrrrr�s
�zdevelop.uninstall_linkc	Cs�||jurt�||�S|�|�|jjpgD]1}tj�t	|��}tj�
|�}t�|��}|�
�}Wd�n1s:wY|�||||�qdS�N)r2r�install_egg_scripts�install_wrapper_scriptsrYrZr'r(r-r�basename�iorL�read�install_script)rr2�script_name�script_path�strm�script_textrrrr^�s


��zdevelop.install_egg_scriptscCst|�}t�||�Sr])�VersionlessRequirementrr_�rr2rrrr_�szdevelop.install_wrapper_scriptsN)�__name__�
__module__�__qualname__�__doc__�descriptionr�user_options�boolean_options�command_consumes_argumentsrrr!�staticmethodr3rrr^r_rrrrrs$�	+
rc@s(eZdZdZdd�Zdd�Zdd�ZdS)	rha�
    Adapt a pkg_resources.Distribution to simply return the project
    name as the 'requirement' so that scripts will work across
    multiple versions.

    >>> from pkg_resources import Distribution
    >>> dist = Distribution(project_name='foo', version='1.0')
    >>> str(dist.as_requirement())
    'foo==1.0'
    >>> adapted_dist = VersionlessRequirement(dist)
    >>> str(adapted_dist.as_requirement())
    'foo'
    cCs
||_dSr])�_VersionlessRequirement__distrirrr�__init__�s
zVersionlessRequirement.__init__cCst|j|�Sr])�getattrrs)r�namerrr�__getattr__�sz"VersionlessRequirement.__getattr__cCs|jSr]rrrrr�as_requirement�sz%VersionlessRequirement.as_requirementN)rjrkrlrmrtrwrxrrrrrh�s
rh)�distutils.utilr�	distutilsr�distutils.errorsrrr'r&rar.�setuptools.command.easy_installrrGr�DevelopInstallerrrhrrrr�<module>s

Anon7 - 2022
AnonSec Team