403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.6/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.6/site-packages/setuptools/command/__pycache__/develop.cpython-36.pyc
3

��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@sveZdZdZdZejddgZejdgZd	Zd
d�Z	dd
�Z
dd�Zedd��Z
dd�Zdd�Zdd�Zdd�ZdS)�developzSet up package for developmentz%install package in 'development mode'�	uninstall�u�Uninstall this source package�	egg-path=N�-Set the path to be used in the .egg-link fileFcCs2|jrd|_|j�|j�n|j�|j�dS)NT)r	Z
multi_version�uninstall_linkZuninstall_namespaces�install_for_developmentZwarn_deprecated_options)�self�r�/usr/lib/python3.6/develop.py�runs
zdevelop.runcCs&d|_d|_tj|�d|_d|_dS)N�.)r	�egg_pathr�initialize_options�
setup_pathZalways_copy_from)rrrrr%s

zdevelop.initialize_optionscCs|jd�}|jr,d}|j|jf}t||��|jg|_tj|�|j�|j	�|j
jtjd��|jd}t
jj|j|�|_|j|_|jdkr�t
jj|j�|_tj|j�}tjt
jj|j|j��}||kr�td|��tj|tj|t
jj|j��|jd�|_|j|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)Zget_finalized_commandZbroken_egg_inforrZegg_name�argsr�finalize_optionsZexpand_basedirsZexpand_dirsZ
package_index�scan�glob�os�path�join�install_dir�egg_link�egg_baser�abspath�
pkg_resources�normalize_pathrZDistributionZPathMetadata�dist�_resolve_setup_pathr)rZei�templaterZegg_link_fn�targetrrrrr,s<




zdevelop.finalize_optionscCsn|jtjd�jd�}|tjkr0d|jd�d}tjtjj	|||��}|tjtj�krjt
d|tjtj���|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&rr r)r#r!rZ
path_to_setupZresolvedrrrr(Ws
zdevelop._resolve_setup_pathcCs�|jd�|jddd�|jd�tjr:|jtj�dt_|j�tjd|j|j	�|j
s�t|jd��}|j|j
d|j�WdQRX|jd|j|j�dS)NrZ	build_extr,)ZinplacezCreating %s (link to %s)�w�
)Zrun_commandZreinitialize_command�
setuptoolsZbootstrap_install_fromrZinstall_namespacesr�infor"r#�dry_run�open�writerrZprocess_distributionr'Zno_deps)r�frrrrms

 zdevelop.install_for_developmentcCs�tjj|j�rztjd|j|j�t|j�}dd�|D�}|j�||j	g|j	|j
gfkrhtjd|�dS|jsztj
|j�|js�|j|j�|jjr�tjd�dS)NzRemoving %s (link to %s)cSsg|]}|j��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!)rr�existsr"rr5r#r7�closerr�warnr6�unlinkZ
update_pthr'�distribution�scripts)rZ
egg_link_file�contentsrrrr�s
zdevelop.uninstall_linkc
Cs�||jk	rtj||�S|j|�x^|jjp,gD]N}tjjt	|��}tjj
|�}tj|��}|j
�}WdQRX|j||||�q.WdS)N)r'r�install_egg_scripts�install_wrapper_scriptsrArBrrr$r�basename�ior7�readZinstall_script)rr'Zscript_nameZscript_pathZstrmZscript_textrrrrD�s

zdevelop.install_egg_scriptscCst|�}tj||�S)N)�VersionlessRequirementrrE)rr'rrrrE�szdevelop.install_wrapper_scripts)r	r
r)rNr
)�__name__�
__module__�__qualname__�__doc__�descriptionrZuser_optionsZboolean_optionsZcommand_consumes_argumentsrrr�staticmethodr(rrrDrErrrrrs	+rc@s(eZdZdZdd�Zdd�Zdd�ZdS)	rIa�
    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
||_dS)N)�_VersionlessRequirement__dist)rr'rrr�__init__�szVersionlessRequirement.__init__cCst|j|�S)N)�getattrrP)r�namerrr�__getattr__�sz"VersionlessRequirement.__getattr__cCs|jS)N)r)rrrr�as_requirement�sz%VersionlessRequirement.as_requirementN)rJrKrLrMrQrTrUrrrrrI�s
rI)Zdistutils.utilrZ	distutilsrZdistutils.errorsrrrrrGr%Zsetuptools.command.easy_installrr4rZDevelopInstallerrrIrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit