Sindbad~EG File Manager
3
9��fK�@svddlmZddlZddlZddlZddlZddljjZ ddl
Z
e jZGdd�de j�Zdd�e jjD�ej
e_dS)�)�DistutilsArgErrorNc@s�eZdZdZejjddgZejjddgZddd �fd
dd �fgZe e�Z
dd
�Zdd�Zdd�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�/usr/lib/python3.6/install.py�<lambda>szinstall.<lambda>Zinstall_scriptscCsdS)NTr)r rrr
rscCstjj|�d|_d|_dS)N)�origr�initialize_options�old_and_unmanageable�!single_version_externally_managed)r rrr
r
szinstall.initialize_optionscCs<tjj|�|jrd|_n|jr8|jr8|jr8td��dS)NTzAYou must specify --record or --root when building system packages)rr�finalize_options�rootr�recordr)r rrr
r%szinstall.finalize_optionscCs(|js|jrtjj|�Sd|_d|_dS)N�)rrrr�handle_extra_pathZ path_fileZ
extra_dirs)r rrr
r0szinstall.handle_extra_pathcCs@|js|jrtjj|�S|jtj��s4tjj|�n|j�dS)N) rrrr�run�_called_from_setup�inspectZcurrentframe�do_egg_install)r rrr
r:s
zinstall.runcCsz|dkr4d}tj|�tj�dkr0d}tj|�dStj|�d}|dd�\}tj|�}|jjdd �}|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.distZrun_commands)
�warnings�warn�platformZpython_implementationrZgetouterframesZgetframeinfo� f_globals�getZfunction)Z run_frame�msg�resZcaller�infoZ
caller_modulerrr
rEs
zinstall._called_from_setupcCs�|jjd�}||jd|j|jd�}|j�d|_|jjtjd��|j d�|jj
d�jg}tj
rp|jdtj
�||_|j�dt_
dS)N�easy_install�x)�argsrr�.z*.eggZ bdist_eggr)ZdistributionZget_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__rrZuser_optionsZboolean_options�new_commands�dict�_ncr
rrr�staticmethodrrrrrr
rs
rcCsg|]}|dtjkr|�qS)r)rr2)�.0r,rrr
�
<listcomp>{sr5)Zdistutils.errorsrrr)rrZdistutils.command.installZcommandrrr*�_installZsub_commandsr0rrrr
�<module>sl
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists