/usr/lib/python2.7/site-packages/setuptools/command
NameSizeModeActions
alias.py24260644editdlrm
alias.pyc30980644editdlrm
alias.pyo30980644editdlrm
bdist_egg.py181850644editdlrm
bdist_egg.pyc183880644editdlrm
bdist_egg.pyo183880644editdlrm
bdist_rpm.py15080644editdlrm
bdist_rpm.pyc19140644editdlrm
bdist_rpm.pyo19140644editdlrm
bdist_wininst.py6370644editdlrm
bdist_wininst.pyc11910644editdlrm
bdist_wininst.pyo11910644editdlrm
build_clib.py44840644editdlrm
build_clib.pyc28440644editdlrm
build_clib.pyo28440644editdlrm
build_ext.py131730644editdlrm
build_ext.pyc125710644editdlrm
build_ext.pyo125270644editdlrm
build_py.py95960644editdlrm
build_py.pyc106670644editdlrm
build_py.pyo106670644editdlrm
develop.py80460644editdlrm
develop.pyc79000644editdlrm
develop.pyo79000644editdlrm
dist_info.py9600644editdlrm
dist_info.pyc17990644editdlrm
dist_info.pyo17990644editdlrm
easy_install.py870320644editdlrm
easy_install.pyc803820644editdlrm
easy_install.pyo803250644editdlrm
egg_info.py248000644editdlrm
egg_info.pyc258960644editdlrm
egg_info.pyo258960644editdlrm
install.py46830644editdlrm
install.pyc49530644editdlrm
install.pyo49530644editdlrm
install_egg_info.py22030644editdlrm
install_egg_info.pyc31850644editdlrm
install_egg_info.pyo31850644editdlrm
install_lib.py38400644editdlrm
install_lib.pyc48700644editdlrm
install_lib.pyo48240644editdlrm
install_scripts.py24390644editdlrm
install_scripts.pyc28910644editdlrm
install_scripts.pyo28910644editdlrm
launcher manifest.xml6280644editdlrm
py36compat.py49860644editdlrm
py36compat.pyc55500644editdlrm
py36compat.pyo55500644editdlrm
register.py2700644editdlrm
register.pyc7100644editdlrm
register.pyo7100644editdlrm
rotate.py21640644editdlrm
rotate.pyc30360644editdlrm
rotate.pyo30360644editdlrm
saveopts.py6580644editdlrm
saveopts.pyc11290644editdlrm
saveopts.pyo11290644editdlrm
sdist.py67110644editdlrm
sdist.pyc78230644editdlrm
sdist.pyo78230644editdlrm
setopt.py50850644editdlrm
setopt.pyc60500644editdlrm
setopt.pyo60500644editdlrm
test.py92140644editdlrm
test.pyc104680644editdlrm
test.pyo104680644editdlrm
upload.py11720644editdlrm
upload.pyc16360644editdlrm
upload.pyo16360644editdlrm
upload_docs.py73110644editdlrm
upload_docs.pyc78420644editdlrm
upload_docs.pyo78130644editdlrm
__init__.py5940644editdlrm
__init__.pyc8820644editdlrm
__init__.pyo8820644editdlrm
Edit: /usr/lib/python2.7/site-packages/setuptools/command/install.py (4683B)
from distutils.errors import DistutilsArgError import inspect import glob import warnings import platform import distutils.command.install as orig import setuptools # Prior to numpy 1.9, NumPy relies on the '_install' name, so provide it for # now. See https://github.com/pypa/setuptools/issues/199/ _install = orig.install class install(orig.install): """Use easy_install to install the package, w/dependencies""" user_options = orig.install.user_options + [ ('old-and-unmanageable', None, "Try not to use this!"), ('single-version-externally-managed', None, "used by system package builders to create 'flat' eggs"), ] boolean_options = orig.install.boolean_options + [ 'old-and-unmanageable', 'single-version-externally-managed', ] new_commands = [ ('install_egg_info', lambda self: True), ('install_scripts', lambda self: True), ] _nc = dict(new_commands) def initialize_options(self): orig.install.initialize_options(self) self.old_and_unmanageable = None self.single_version_externally_managed = None def finalize_options(self): orig.install.finalize_options(self) if self.root: self.single_version_externally_managed = True elif self.single_version_externally_managed: if not self.root and not self.record: raise DistutilsArgError( "You must specify --record or --root when building system" " packages" ) def handle_extra_path(self): if self.root or self.single_version_externally_managed: # explicit backward-compatibility mode, allow extra_path to work return orig.install.handle_extra_path(self) # Ignore extra_path when installing an egg (or being run by another # command without --root or --single-version-externally-managed self.path_file = None self.extra_dirs = '' def run(self): # Explicit request for old-style install? Just do it if self.old_and_unmanageable or self.single_version_externally_managed: return orig.install.run(self) if not self._called_from_setup(inspect.currentframe()): # Run in backward-compatibility mode to support bdist_* commands. orig.install.run(self) else: self.do_egg_install() @staticmethod def _called_from_setup(run_frame): """ 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. """ if run_frame is None: msg = "Call stack not available. bdist_* commands may fail." warnings.warn(msg) if platform.python_implementation() == 'IronPython': msg = "For best results, pass -X:Frames to enable call stack." warnings.warn(msg) return True res = inspect.getouterframes(run_frame)[2] caller, = res[:1] info = inspect.getframeinfo(caller) caller_module = caller.f_globals.get('__name__', '') return ( caller_module == 'distutils.dist' and info.function == 'run_commands' ) def do_egg_install(self): easy_install = self.distribution.get_command_class('easy_install') cmd = easy_install( self.distribution, args="x", root=self.root, record=self.record, ) cmd.ensure_finalized() # finalize before bdist_egg munges install cmd cmd.always_copy_from = '.' # make sure local-dir eggs get installed # pick up setup-dir .egg files only: no .egg-info cmd.package_index.scan(glob.glob('*.egg')) self.run_command('bdist_egg') args = [self.distribution.get_command_obj('bdist_egg').egg_output] if setuptools.bootstrap_install_from: # Bootstrap self-installation of setuptools args.insert(0, setuptools.bootstrap_install_from) cmd.args = args cmd.run() setuptools.bootstrap_install_from = None # XXX Python 3.1 doesn't see _nc if this is inside the class install.sub_commands = ( [cmd for cmd in orig.install.sub_commands if cmd[0] not in install._nc] + install.new_commands )