403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.117.174.43
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python35/lib/python3.5/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python35/lib/python3.5/site-packages/setuptools/command/__pycache__/develop.cpython-35.pyc


�ReX�@s�ddlmZddlmZddlmZmZddlZddlZddl	Z	ddl
mZddlm
Z
mZmZddlmZddlmZddlZGd	d
�d
eje�ZGdd�de�ZdS)
�)�convert_path)�log)�DistutilsError�DistutilsOptionErrorN)�six)�Distribution�PathMetadata�normalize_path)�easy_install)�
namespacesc@s�eZdZdZdZejddgZejdgZd	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 fileFcCsA|jr)d|_|j�|j�n
|j�|j�dS)NT)r
Z
multi_version�uninstall_linkZuninstall_namespaces�install_for_developmentZwarn_deprecated_options)�self�r��/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/command/develop.py�runs		


zdevelop.runcCs5d|_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�|_t|j�}tt
jj|j|j��}||kr0td|��t|t|t
jj|j��d|j�|_|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)�get_finalized_commandZbroken_egg_inforr�egg_name�argsr
�finalize_options�expand_basedirs�expand_dirsZ
package_index�scan�glob�os�path�join�install_dir�egg_link�egg_baser�abspathr	rrr�dist�_resolve_setup_pathr)r�ei�templater Zegg_link_fn�targetrrrrr!.s<	




zdevelop.finalize_optionscCs�|jtjd�jd�}|tjkrDd|jd�d}ttjj|||��}|ttj�kr�t	d|ttj���|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)rZ
path_to_setupZresolvedrrrr.Xszdevelop._resolve_setup_pathcCs�tjr�t|jdd�r�|jddd�|jd�|jd�}t|j�}|jdd|�|jd�|jddd�|jd�|jd�}||_	||j
_t||j
�|j
_n-|jd�|jddd	�|jd�|j�tjr4|jtj�dt_|j�tjd
|j|j�|js�t|jd��"}|j|j	d|j�WdQRX|jd|j
|j�dS)
NZuse_2to3F�build_pyZinplacerrr+�	build_extr3zCreating %s (link to %s)�w�
)r�PY3�getattr�distribution�reinitialize_command�run_commandrr	�	build_librr-�locationrr�	_providerZinstall_site_py�
setuptoolsZbootstrap_install_fromr
Zinstall_namespacesr�infor*r+�dry_run�open�writerZprocess_distribution�no_deps)rZbpy_cmdZ
build_pathZei_cmd�frrrris4


	


		
	"zdevelop.install_for_developmentcCs�tjj|j�r�tjd|j|j�t|j�}dd�|D�}|j�||j	g|j	|j
gfkr�tjd|�dS|js�tj
|j�|js�|j|j�|jjr�tjd�dS)NzRemoving %s (link to %s)cSsg|]}|j��qSr)r6)�.0�linerrr�
<listcomp>�s	z*develop.uninstall_link.<locals>.<listcomp>z$Link points to %s: uninstall abortedz5Note: you must uninstall or replace scripts manually!)r&r'�existsr*rrFr+rH�closerr�warnrG�unlinkZ
update_pthr-r?�scripts)rZ
egg_link_file�contentsrrrr�s
		zdevelop.uninstall_linkc
Cs�||jk	rtj||�S|j|�x|jjp>gD]k}tjjt	|��}tjj
|�}tj|��}|j
�}WdQRX|j||||�q?WdS)N)r-r
�install_egg_scripts�install_wrapper_scriptsr?rSr&r'r,r�basename�iorH�readZinstall_script)rr-�script_nameZscript_path�strm�script_textrrrrU�s
zdevelop.install_egg_scriptscCst|�}tj||�S)N)�VersionlessRequirementr
rV)rr-rrrrV�szdevelop.install_wrapper_scripts)r
rr)rNr)�__name__�
__module__�__qualname__�__doc__�descriptionr
�user_options�boolean_optionsZcommand_consumes_argumentsrrr!�staticmethodr.rrrUrVrrrrrs
	*/rc@s:eZdZdZdd�Zdd�Zdd�ZdS)	r]az
    Adapt a pkg_resources.Distribution to simply return the project
    name as the 'requirement' so that scripts will work across
    multiple versions.

    >>> 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__cCst|j|�S)N)r>rf)r�namerrr�__getattr__�sz"VersionlessRequirement.__getattr__cCs|jS)N)r)rrrr�as_requirement�sz%VersionlessRequirement.as_requirementN)r^r_r`rargrirjrrrrr]�sr])�distutils.utilr�	distutilsr�distutils.errorsrrr&r%rXZsetuptools.externr�
pkg_resourcesrrr	Zsetuptools.command.easy_installr
rErZDevelopInstallerr�objectr]rrrr�<module>s�

Youez - 2016 - github.com/yon3zu
LinuXploit