Commit 5afddb36 authored by PJ Eby's avatar PJ Eby

Support ``extra_path`` option to ``setup()`` when ``install`` is run in

backward-compatibility mode.  (backport from trunk)

--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050700
parent 403e6845
......@@ -2574,6 +2574,9 @@ Release Notes/Change History
* Made ``setup.py develop`` respect the ``--no-deps`` option, which it
previously was ignoring.
* Support ``extra_path`` option to ``setup()`` when ``install`` is run in
backward-compatibility mode.
0.6b4
* Fix ``register`` not obeying name/version set by ``egg_info`` command, if
``egg_info`` wasn't explicitly run first on the same command line.
......
......@@ -40,10 +40,16 @@ class install(_install):
)
def handle_extra_path(self):
# We always ignore extra_path, because we install as .egg or .egg-info
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:
......@@ -74,12 +80,6 @@ class install(_install):
def do_egg_install(self):
from setuptools.command.easy_install import easy_install
......@@ -120,4 +120,4 @@ class install(_install):
#
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment