aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_egg.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-08-22 13:40:10 +0000
committerPJ Eby <distutils-sig@python.org>2005-08-22 13:40:10 +0000
commitb577c94170b64436919bea8e002c64623d0a9644 (patch)
treeb35c56a641742b554c66e854d6c815b978c61420 /setuptools/command/bdist_egg.py
parentcbccc4eafde18db71a6dc6a23ec0d39c582655d3 (diff)
downloadexternal_python_setuptools-b577c94170b64436919bea8e002c64623d0a9644.tar.gz
external_python_setuptools-b577c94170b64436919bea8e002c64623d0a9644.tar.bz2
external_python_setuptools-b577c94170b64436919bea8e002c64623d0a9644.zip
Make easy_install --record strip the RPM root when building RPMs, and have
bdist_egg ignore the RPM root when building an egg. This version now can actually run bdist_rpm to completion, although the resulting RPM will install an egg without a corresponding .pth file. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041226
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r--setuptools/command/bdist_egg.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index eb92bd24..1f17bb82 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -170,7 +170,11 @@ class bdist_egg(Command):
# pull their data path from the install_lib command.
log.info("installing library code to %s" % self.bdist_dir)
+ instcmd = self.get_finalized_command('install')
+ old_root = instcmd.root
+ instcmd.root = None
cmd = self.call_command('install_lib', warn_dir=0)
+ instcmd.root = old_root
ext_outputs = cmd._mutate_outputs(
self.distribution.has_ext_modules(), 'build_ext', 'build_lib', ''