[Python-checkins] r45477 - python/trunk/Lib/distutils/sysconfig.py
armin.rigo
python-checkins at python.org
Mon Apr 17 11:22:36 CEST 2006
Author: armin.rigo
Date: Mon Apr 17 11:22:35 2006
New Revision: 45477
Modified:
python/trunk/Lib/distutils/sysconfig.py
Log:
Fix for a bug exposed by r45232:
/path/to/uninstalled/python setup.py build_ext
now failed with pyconfig.h not found. Prior to r45232
the above command did not look for pyconfig.h, but the
bug is really in the look-up code: expecting to find it
in os.curdir is a rather fragile idea.
Modified: python/trunk/Lib/distutils/sysconfig.py
==============================================================================
--- python/trunk/Lib/distutils/sysconfig.py (original)
+++ python/trunk/Lib/distutils/sysconfig.py Mon Apr 17 11:22:35 2006
@@ -31,7 +31,7 @@
python_build = os.path.isfile(landmark)
-del argv0_path, landmark
+del landmark
def get_python_version():
@@ -185,7 +185,7 @@
def get_config_h_filename():
"""Return full pathname of installed pyconfig.h file."""
if python_build:
- inc_dir = os.curdir
+ inc_dir = argv0_path
else:
inc_dir = get_python_inc(plat_specific=1)
if get_python_version() < '2.2':
More information about the Python-checkins
mailing list