summaryrefslogtreecommitdiff
path: root/Lib/distutils
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2001-07-26 18:06:58 +0000
committerMarc-André Lemburg <mal@egenix.com>2001-07-26 18:06:58 +0000
commit6f17c8c3fc774daa7b3e164b9101d561e723590c (patch)
tree7f980bfd10d1e72154ec3ce496079004de54bb74 /Lib/distutils
parent9fc1f27c92333c7d1f9ebd9a11d0d0a5ec674dd5 (diff)
downloadcpython-6f17c8c3fc774daa7b3e164b9101d561e723590c.tar.gz
Add backwards compatibility.
Diffstat (limited to 'Lib/distutils')
-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 529d0e6dd3..bbf7c4afab 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():