]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
get_config_h_filename(): Fix to work with current Python
authorFred Drake <fdrake@acm.org>
Mon, 11 Jan 1999 15:34:55 +0000 (15:34 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 11 Jan 1999 15:34:55 +0000 (15:34 +0000)
installations; it was picking up a stale config.h from an
overwritten installation.

Lib/distutils/sysconfig.py

index 04551a77aa58f3a4889a747cf3b29b91681df52b..e71ae4668a1fd21bd38e101edb77935ab8273f96 100644 (file)
@@ -16,8 +16,8 @@ import sys
 
 def get_config_h_filename():
     """Return full pathname of installed config.h file."""
-    return os.path.join(sys.exec_prefix, "lib", "python" + sys.version[:3],
-                        "config", "config.h")
+    return os.path.join(sys.exec_prefix, "include", "python" + sys.version[:3],
+                        "config.h")
 
 def get_makefile_filename():
     """Return full pathname of installed Makefile from the Python build."""