/usr/lib/python2.6/site-packages/setuptools/command
NameSizeModeActions
alias.py24770644editdlrm
alias.pyc32520644editdlrm
alias.pyo32520644editdlrm
bdist_egg.py179930644editdlrm
bdist_egg.pyc180150644editdlrm
bdist_egg.pyo180150644editdlrm
bdist_rpm.py20250644editdlrm
bdist_rpm.pyc23170644editdlrm
bdist_rpm.pyo23170644editdlrm
bdist_wininst.py15480644editdlrm
bdist_wininst.pyc18360644editdlrm
bdist_wininst.pyo18360644editdlrm
build_ext.py117040644editdlrm
build_ext.pyc103610644editdlrm
build_ext.pyo103150644editdlrm
build_py.py99440644editdlrm
build_py.pyc110550644editdlrm
build_py.pyo110550644editdlrm
develop.py95350644editdlrm
develop.pyc90280644editdlrm
develop.pyo90280644editdlrm
easy_install.py641040755editdlrm
easy_install.pyc590920644editdlrm
easy_install.pyo590920644editdlrm
egg_info.py143560644editdlrm
egg_info.pyc170280644editdlrm
egg_info.pyo170280644editdlrm
install.py40650644editdlrm
install.pyc38010644editdlrm
install.pyo38010644editdlrm
install_egg_info.py37320644editdlrm
install_egg_info.pyc46720644editdlrm
install_egg_info.pyo46720644editdlrm
install_lib.py24860644editdlrm
install_lib.pyc32730644editdlrm
install_lib.pyo32230644editdlrm
install_scripts.py20110644editdlrm
install_scripts.pyc25340644editdlrm
install_scripts.pyo25340644editdlrm
launcher manifest.xml6280644editdlrm
register.py2770644editdlrm
register.pyc6920644editdlrm
register.pyo6920644editdlrm
rotate.py20210644editdlrm
rotate.pyc29400644editdlrm
rotate.pyo29400644editdlrm
saveopts.py7400644editdlrm
saveopts.pyc12750644editdlrm
saveopts.pyo12750644editdlrm
sdist.py71830644editdlrm
sdist.pyc83090644editdlrm
sdist.pyo83090644editdlrm
setopt.py50530644editdlrm
setopt.pyc60630644editdlrm
setopt.pyo60630644editdlrm
test.py51100644editdlrm
test.pyc54420644editdlrm
test.pyo54420644editdlrm
upload.py66810644editdlrm
upload.pyc64080644editdlrm
upload.pyo63750644editdlrm
upload_docs.py55070644editdlrm
upload_docs.pyc57410644editdlrm
upload_docs.pyo57080644editdlrm
__init__.py6900644editdlrm
__init__.pyc9150644editdlrm
__init__.pyo9150644editdlrm
Edit: /usr/lib/python2.6/site-packages/setuptools/command/install.py (4065B)
import setuptools, sys, glob from distutils.command.install import install as _install from distutils.errors import DistutilsArgError class install(_install): """Use easy_install to install the package, w/dependencies""" user_options = _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 = _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): _install.initialize_options(self) self.old_and_unmanageable = None self.single_version_externally_managed = None self.no_compile = None # make DISTUTILS_DEBUG work right! def finalize_options(self): _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 _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 _install.run(self) # Attempt to detect whether we were called from setup() or by another # command. If we were called by setup(), our caller will be the # 'run_command' method in 'distutils.dist', and *its* caller will be # the 'run_commands' method. If we were called any other way, our # immediate caller *might* be 'run_command', but it won't have been # called by 'run_commands'. This is slightly kludgy, but seems to # work. # caller = sys._getframe(2) caller_module = caller.f_globals.get('__name__','') caller_name = caller.f_code.co_name if caller_module != 'distutils.dist' or caller_name!='run_commands': # We weren't called from the command line or setup(), so we # should run in backward-compatibility mode to support bdist_* # commands. _install.run(self) else: self.do_egg_install() 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 _install.sub_commands if cmd[0] not in install._nc ] + install.new_commands #