summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-06-15 16:05:20 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2010-06-15 16:05:20 (GMT)
commite41a19e71ad5ffa2968916f1d81e3323a4f71542 (patch)
tree7c6ca6a93bfc449ed288bedb22f8a7cf3b934815 /Lib/distutils
parentcb532f13e3049d7ae76b7ea0bfe4fb4af0aebe7b (diff)
downloadcpython-e41a19e71ad5ffa2968916f1d81e3323a4f71542.zip
cpython-e41a19e71ad5ffa2968916f1d81e3323a4f71542.tar.gz
cpython-e41a19e71ad5ffa2968916f1d81e3323a4f71542.tar.bz2
Fix for issue #8577: without this patch test_distutils
will fail when builddir != srcdir (that is, when you run configure in a directory that is not the top of the source tree).
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/install.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py
index 3c28c66..e3e387a 100644
--- a/Lib/distutils/command/install.py
+++ b/Lib/distutils/command/install.py
@@ -302,8 +302,8 @@ class install(Command):
# about needing recursive variable expansion (shudder).
py_version = sys.version.split()[0]
- prefix, exec_prefix, srcdir = get_config_vars('prefix', 'exec_prefix',
- 'srcdir')
+ prefix, exec_prefix, srcdir, projectbase = get_config_vars('prefix', 'exec_prefix',
+ 'srcdir', 'projectbase')
self.config_vars = {'dist_name': self.distribution.get_name(),
'dist_version': self.distribution.get_version(),
@@ -316,6 +316,7 @@ class install(Command):
'sys_exec_prefix': exec_prefix,
'exec_prefix': exec_prefix,
'srcdir': srcdir,
+ 'projectbase': projectbase,
}
self.config_vars['userbase'] = self.install_userbase