From: Greg Ward Date: Mon, 7 Aug 2000 00:48:04 +0000 (+0000) Subject: Fix so the 'install_libbase' directory -- where .pth files are installed -- X-Git-Tag: v2.0b1~551 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b024d37a7e56279db00c7d775397f19927736a9;p=thirdparty%2FPython%2Fcpython.git Fix so the 'install_libbase' directory -- where .pth files are installed -- participates in the "--root" hack, ie. it also has a new root directory hacked on at the very last minute (essential if the .pth file is to be included in an RPM or other smart installer!). --- diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py index 6385fdc22445..2a59e16b96a2 100644 --- a/Lib/distutils/command/install.py +++ b/Lib/distutils/command/install.py @@ -273,7 +273,7 @@ class install (Command): # If a new root directory was supplied, make all the installation # dirs relative to it. if self.root is not None: - for name in ('lib', 'purelib', 'platlib', + for name in ('libbase', 'lib', 'purelib', 'platlib', 'scripts', 'data', 'headers'): attr = "install_" + name new_val = change_root (self.root, getattr (self, attr))