summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/sysconfig.py
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2001-07-26 18:06:58 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2001-07-26 18:06:58 (GMT)
commit7cf92fa1c891b53e6143e090009911c0231bb24a (patch)
tree9176d1d69a8fe8f92e11b491def09d24456f99f3 /Lib/distutils/sysconfig.py
parentae21df59c372dd73307b3cb7178567a930d478c2 (diff)
downloadcpython-7cf92fa1c891b53e6143e090009911c0231bb24a.zip
cpython-7cf92fa1c891b53e6143e090009911c0231bb24a.tar.gz
cpython-7cf92fa1c891b53e6143e090009911c0231bb24a.tar.bz2
Add backwards compatibility.
Diffstat (limited to 'Lib/distutils/sysconfig.py')
-rw-r--r--Lib/distutils/sysconfig.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index 529d0e6..bbf7c4a 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -140,7 +140,12 @@ def get_config_h_filename():
"""Return full pathname of installed pyconfig.h file."""
if python_build: inc_dir = '.'
else: inc_dir = get_python_inc(plat_specific=1)
- return os.path.join(inc_dir, "pyconfig.h")
+ if sys.version < '2.2':
+ config_h = 'config.h'
+ else:
+ # The name of the config.h file changed in 2.2
+ config_h = 'pyconfig.h'
+ return os.path.join(inc_dir, config_h)
def get_makefile_filename():