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



©‘\Kã@s§ddlmZddlZddlZddlZddlZddljjZ	ddl
Z
e	jZGdd„de	jƒZdd„e	jjDƒej
e_dS)é)ÚDistutilsArgErrorNc@sÀeZdZdZejjddgZejjddgZddd	„fd
dd	„fgZe	eƒZ
dd
„Zdd„Zdd„Z
dd„Zedd„ƒZdd„ZdS)Úinstallz7Use easy_install to install the package, w/dependenciesúold-and-unmanageableNúTry not to use this!ú!single-version-externally-managedú5used by system package builders to create 'flat' eggsZinstall_egg_infocCsdS)NT©)Úselfrrú/install.pyÚ<lambda>szinstall.<lambda>Zinstall_scriptscCsdS)NTr)r	rrr
rscCs&tjj|ƒd|_d|_dS)N)ÚorigrÚinitialize_optionsÚold_and_unmanageableÚ!single_version_externally_managed)r	rrr
r
 s	zinstall.initialize_optionscCsRtjj|ƒ|jr%d|_n)|jrN|jrN|jrNtdƒ‚dS)NTzAYou must specify --record or --root when building system packages)rrÚfinalize_optionsÚrootrÚrecordr)r	rrr
r%s		zinstall.finalize_optionscCs8|js|jr"tjj|ƒSd|_d|_dS)NÚ)rrrrÚhandle_extra_pathZ	path_fileZ
extra_dirs)r	rrr
r0s	zinstall.handle_extra_pathcCsX|js|jr"tjj|ƒS|jtjƒƒsJtjj|ƒn
|jƒdS)N)	rrrrÚrunÚ_called_from_setupÚinspectÚcurrentframeÚdo_egg_install)r	rrr
r:s
zinstall.runcCs«|dkrHd}tj|ƒtjƒdkrDd}tj|ƒdStj|ƒd}|dd…\}tj|ƒ}|jjdd	ƒ}|d
koª|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ÚgetÚfunction)Z	run_frameÚmsgÚresZcallerÚinfoZ
caller_modulerrr
rEs

zinstall._called_from_setupcCsÆ|jjdƒ}||jddd|jd|jƒ}|jƒd|_|jjtjdƒƒ|j	dƒ|jj
dƒjg}tj
r¦|jd	tj
ƒ||_|jƒdt_
dS)
NÚeasy_installÚargsÚxrrÚ.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_install)rNr)rNr)rÚ
__module__Ú__qualname__Ú__doc__rrZuser_optionsZboolean_optionsÚnew_commandsÚdictÚ_ncr
rrrÚstaticmethodrrrrrr
rs 	
	

rcCs)g|]}|dtjkr|‘qS)r)rr4)Ú.0r.rrr
ú
<listcomp>{s	r7)Zdistutils.errorsrrr+rrZdistutils.command.installZcommandrrr,Ú_installZsub_commandsr2rrrr
Ú<module>s	l
Back to Directory File Manager