[Python-checkins] cpython (3.2): Fix distutils.sysconfig.get_makefile_filename when prefix != exec-prefix

eric.araujo python-checkins at python.org
Sun Oct 9 08:59:49 CEST 2011


http://hg.python.org/cpython/rev/9afd3d54c3cb
changeset:   72820:9afd3d54c3cb
branch:      3.2
user:        Éric Araujo <merwok at netwok.org>
date:        Sat Oct 08 01:56:52 2011 +0200
summary:
  Fix distutils.sysconfig.get_makefile_filename when prefix != exec-prefix

files:
  Lib/distutils/sysconfig.py |  2 +-
  Misc/NEWS                  |  3 +++
  2 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -218,7 +218,7 @@
     """Return full pathname of installed Makefile from the Python build."""
     if python_build:
         return os.path.join(os.path.dirname(sys.executable), "Makefile")
-    lib_dir = get_python_lib(plat_specific=1, standard_lib=1)
+    lib_dir = get_python_lib(plat_specific=0, standard_lib=1)
     config_file = 'config-{}{}'.format(get_python_version(), build_flags)
     return os.path.join(lib_dir, config_file, 'Makefile')
 
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -43,6 +43,9 @@
 Library
 -------
 
+- Fix distutils.sysconfig.get_makefile_filename when Python was configured with
+  different prefix and exec-prefix.
+
 - Issue #11254: Teach distutils to compile .pyc and .pyo files in
   PEP 3147-compliant __pycache__ directories.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list