Viewing File: /opt/alt/python38/lib/python3.8/site-packages/setuptools/command/__pycache__/install.cpython-38.pyc

U

+aa@s|ddlmZddlZddlZddlZddlZddlmmZ	ddl
Z
e	jZGddde	jZdde	jjDej
e_dS))DistutilsArgErrorNc@seZdZdZejjddgZejjddgZdddfd	d
dfgZe	eZ
ddZd
dZddZ
ddZeddZddZdS)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' eggsrrinstall_egg_infocCsdSNTselfrrB/tmp/pip-install-1bd_1mtk/setuptools/setuptools/command/install.py<lambda>zinstall.<lambda>install_scriptscCsdSrrr	rrrrr
cCstj|d|_d|_dSN)origrinitialize_optionsold_and_unmanageable!single_version_externally_managedr	rrrr szinstall.initialize_optionscCs8tj||jrd|_n|jr4|js4|js4tddS)NTzAYou must specify --record or --root when building system packages)rrfinalize_optionsrootrrecordrr	rrrr%szinstall.finalize_optionscCs(|js|jrtj|Sd|_d|_dS)N)rrrrhandle_extra_path	path_file
extra_dirsr	rrrr0szinstall.handle_extra_pathcCs@|js|jrtj|S|ts4tj|n|dSr)	rrrrrun_called_from_setupinspectcurrentframedo_egg_installr	rrrr:s
zinstall.runcCsz|dkr4d}t|tdkr0d}t|dSt|d}|dd\}t|}|jdd	}|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.
IronPythonz6For best results, pass -X:Frames to enable call stack.T__name__rzdistutils.distrun_commands)
warningswarnplatformpython_implementationrgetouterframesgetframeinfo	f_globalsgetfunction)Z	run_framemsgresZcallerinfoZ
caller_modulerrrrEs


zinstall._called_from_setupcCs|jd}||jd|j|jd}|d|_|jtd|	d|j
djg}tj
rp|dtj
||_|jdd	dt_
dS)
Neasy_installx)argsrr.z*.eggZ	bdist_eggrF)Zshow_deprecation)distributionget_command_classrrensure_finalizedZalways_copy_fromZ
package_indexscanglobrun_commandget_command_objZ
egg_output
setuptoolsZbootstrap_install_frominsertr3r)r
r1cmdr3rrrr`s"
zinstall.do_egg_installN)r#
__module____qualname____doc__rruser_optionsboolean_optionsnew_commandsdict_ncrrrrstaticmethodrrrrrrrs(



rcCsg|]}|dtjkr|qS)r)rrF).0r>rrr
<listcomp>{srI)distutils.errorsrrr9r%r'distutils.command.installcommandrrr<_installsub_commandsrDrrrr<module>sl
Back to Directory File Manager