[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.144.179.230: ~ $


��\X�@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�/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_inforrZegg_name�argsr
�finalize_optionsZexpand_basedirsZexpand_dirsZ
package_index�scan�glob�os�path�join�install_dir�egg_link�egg_baser�abspathr	rrr�dist�_resolve_setup_pathr)r�ei�templaterZegg_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_2to3FZbuild_pyZinplacerrr(Z	build_extr0zCreating %s (link to %s)�w�
)rZPY3�getattr�distributionZreinitialize_commandZrun_commandrr	Z	build_librr*�locationrrZ	_providerZinstall_site_py�
setuptoolsZbootstrap_install_fromr
Zinstall_namespacesr�infor'r(�dry_run�open�writerZprocess_distributionZno_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)r3)�.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'rr<r(r>�closerr�warnr=�unlinkZ
update_pthr*r9�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_scriptsr9rHr#r$r)r�basename�ior>�readZinstall_script)rr*Zscript_nameZscript_pathZstrmZscript_textrrrrJ�s
zdevelop.install_egg_scriptscCst|�}tj||�S)N)�VersionlessRequirementr
rK)rr*rrrrK�szdevelop.install_wrapper_scripts)r
rr)rNr)�__name__�
__module__�__qualname__�__doc__�descriptionr
Zuser_optionsZboolean_optionsZcommand_consumes_argumentsrrr �staticmethodr+rrrJrKrrrrrs
	*/rc@s:eZdZdZdd�Zdd�Zdd�ZdS)	rOaz
    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)r8rV)r�namerrr�__getattr__�sz"VersionlessRequirement.__getattr__cCs|jS)N)r)rrrr�as_requirement�sz%VersionlessRequirement.as_requirementN)rPrQrRrSrWrYrZrrrrrO�srO)Zdistutils.utilrZ	distutilsrZdistutils.errorsrrr#r"rMZsetuptools.externrZ
pkg_resourcesrrr	Zsetuptools.command.easy_installr
r;rZDevelopInstallerr�objectrOrrrr�<module>s�

Filemanager

Name Type Size Permission Actions
__init__.cpython-35.opt-1.pyc File 681 B 0644
__init__.cpython-35.pyc File 681 B 0644
alias.cpython-35.opt-1.pyc File 2.49 KB 0644
alias.cpython-35.pyc File 2.49 KB 0644
bdist_egg.cpython-35.opt-1.pyc File 14.54 KB 0644
bdist_egg.cpython-35.pyc File 14.54 KB 0644
bdist_rpm.cpython-35.opt-1.pyc File 1.74 KB 0644
bdist_rpm.cpython-35.pyc File 1.74 KB 0644
bdist_wininst.cpython-35.opt-1.pyc File 926 B 0644
bdist_wininst.cpython-35.pyc File 926 B 0644
build_clib.cpython-35.opt-1.pyc File 2.47 KB 0644
build_clib.cpython-35.pyc File 2.47 KB 0644
build_ext.cpython-35.opt-1.pyc File 10.59 KB 0644
build_ext.cpython-35.pyc File 10.62 KB 0644
build_py.cpython-35.opt-1.pyc File 8.99 KB 0644
build_py.cpython-35.pyc File 8.99 KB 0644
develop.cpython-35.opt-1.pyc File 6.74 KB 0644
develop.cpython-35.pyc File 6.74 KB 0644
easy_install.cpython-35.opt-1.pyc File 68.1 KB 0644
easy_install.cpython-35.pyc File 68.1 KB 0644
egg_info.cpython-35.opt-1.pyc File 22.17 KB 0644
egg_info.cpython-35.pyc File 22.17 KB 0644
install.cpython-35.opt-1.pyc File 4.08 KB 0644
install.cpython-35.pyc File 4.08 KB 0644
install_egg_info.cpython-35.opt-1.pyc File 2.48 KB 0644
install_egg_info.cpython-35.pyc File 2.48 KB 0644
install_lib.cpython-35.opt-1.pyc File 4.08 KB 0644
install_lib.cpython-35.pyc File 4.12 KB 0644
install_scripts.cpython-35.opt-1.pyc File 2.33 KB 0644
install_scripts.cpython-35.pyc File 2.33 KB 0644
py36compat.cpython-35.opt-1.pyc File 4.75 KB 0644
py36compat.cpython-35.pyc File 4.75 KB 0644
register.cpython-35.opt-1.pyc File 531 B 0644
register.cpython-35.pyc File 531 B 0644
rotate.cpython-35.opt-1.pyc File 2.63 KB 0644
rotate.cpython-35.pyc File 2.63 KB 0644
saveopts.cpython-35.opt-1.pyc File 896 B 0644
saveopts.cpython-35.pyc File 896 B 0644
sdist.cpython-35.opt-1.pyc File 6.43 KB 0644
sdist.cpython-35.pyc File 6.43 KB 0644
setopt.cpython-35.opt-1.pyc File 4.76 KB 0644
setopt.cpython-35.pyc File 4.76 KB 0644
test.cpython-35.opt-1.pyc File 8.4 KB 0644
test.cpython-35.pyc File 8.4 KB 0644
upload.cpython-35.opt-1.pyc File 1.34 KB 0644
upload.cpython-35.pyc File 1.34 KB 0644
upload_docs.cpython-35.opt-1.pyc File 6.44 KB 0644
upload_docs.cpython-35.pyc File 6.46 KB 0644