Commit 6f17c8c3 authored by Marc-André Lemburg's avatar Marc-André Lemburg

Add backwards compatibility.

parent 9fc1f27c
...@@ -140,7 +140,12 @@ def get_config_h_filename(): ...@@ -140,7 +140,12 @@ def get_config_h_filename():
"""Return full pathname of installed pyconfig.h file.""" """Return full pathname of installed pyconfig.h file."""
if python_build: inc_dir = '.' if python_build: inc_dir = '.'
else: inc_dir = get_python_inc(plat_specific=1) 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(): def get_makefile_filename():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment