Your IP : 18.191.54.190


Current Path : /usr/lib/python3.8/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //usr/lib/python3.8/site-packages/setuptools/command/__pycache__/install.cpython-38.opt-1.pyc

U

�QabK�@s|ddlmZddlZddlZddlZddlZddlmmZ	ddl
Z
e	jZGdd�de	j�Zdd�e	jjD�ej
e_dS)�)�DistutilsArgErrorNc@s�eZdZdZejjddgZejjddgZddd�fd	d
d�fgZe	e�Z
dd�Zd
d�Zdd�Z
dd�Zedd��Zdd�ZdS)�installz7Use easy_install to install the package, w/dependencies)�old-and-unmanageableNzTry not to use this!)�!single-version-externally-managedNz5used by system package builders to create 'flat' eggsrrZinstall_egg_infocCsdS�NT���selfrr�>/usr/lib/python3.8/site-packages/setuptools/command/install.py�<lambda>�zinstall.<lambda>Zinstall_scriptscCsdSrrrrrr
rrcCstj�|�d|_d|_dS�N)�origr�initialize_options�old_and_unmanageable�!single_version_externally_managedrrrr
r szinstall.initialize_optionscCs8tj�|�|jrd|_n|jr4|js4|js4td��dS)NTzAYou must specify --record or --root when building system packages)rr�finalize_options�rootr�recordrrrrr
r%s�zinstall.finalize_optionscCs(|js|jrtj�|�Sd|_d|_dS)N�)rrrr�handle_extra_pathZ	path_fileZ
extra_dirsrrrr
r0szinstall.handle_extra_pathcCs@|js|jrtj�|�S|�t���s4tj�|�n|��dSr
)	rrrr�run�_called_from_setup�inspectZcurrentframe�do_egg_installrrrr
r:s
zinstall.runcCsz|dkr4d}t�|�t��dkr0d}t�|�dSt�|�d}|dd�\}t�|�}|j�dd	�}|d
kox|j	dkS)a�
        Attempt to detect whether run() was called from setup() or by another
        command.  If called by setup(), the parent caller will be the
        'run_command' method in 'distutils.dist', and *its* caller will be
        the 'run_commands' method.  If called any other way, the
        immediate caller *might* be 'run_command', but it won't have been
        called by 'run_commands'. Return True in that case or if a call stack
        is unavailable. Return False otherwise.
        Nz4Call stack not available. bdist_* commands may fail.Z
IronPythonz6For best results, pass -X:Frames to enable call stack.T���__name__rzdistutils.distZrun_commands)
�warnings�warn�platformZpython_implementationrZgetouterframesZgetframeinfo�	f_globals�getZfunction)Z	run_frame�msg�resZcaller�infoZ
caller_modulerrr
rEs


�zinstall._called_from_setupcCs�|j�d�}||jd|j|jd�}|��d|_|j�t�d��|�	d�|j�
d�jg}tj
rp|�dtj
�||_|��dt_
dS)N�easy_install�x)�argsrr�.z*.eggZ	bdist_eggr)ZdistributionZget_command_classrrZensure_finalizedZalways_copy_fromZ
package_index�scan�globZrun_commandZget_command_objZ
egg_output�
setuptoolsZbootstrap_install_from�insertr(r)r	r&�cmdr(rrr
r`s"�
zinstall.do_egg_installN)r�
__module__�__qualname__�__doc__rrZuser_optionsZboolean_options�new_commands�dict�_ncrrrr�staticmethodrrrrrr
rs(��

�

rcCsg|]}|dtjkr|�qS)r)rr4)�.0r.rrr
�
<listcomp>{sr7)Zdistutils.errorsrrr+rr Zdistutils.command.installZcommandrrr,�_installZsub_commandsr2rrrr
�<module>sl��

?>