[Python-checkins] r60592 - python/trunk/Lib/distutils/sysconfig.py

marc-andre.lemburg python-checkins at python.org
Tue Feb 5 15:50:40 CET 2008


Author: marc-andre.lemburg
Date: Tue Feb  5 15:50:40 2008
New Revision: 60592

Modified:
   python/trunk/Lib/distutils/sysconfig.py
Log:
Keep distutils Python 2.1 compatible (or even Python 2.4 in this case).



Modified: python/trunk/Lib/distutils/sysconfig.py
==============================================================================
--- python/trunk/Lib/distutils/sysconfig.py	(original)
+++ python/trunk/Lib/distutils/sysconfig.py	Tue Feb  5 15:50:40 2008
@@ -37,8 +37,12 @@
 # different (hard-wired) directories.
 # Setup.local is available for Makefile builds including VPATH builds,
 # Setup.dist is available on Windows
-python_build = any(os.path.isfile(os.path.join(project_base, "Modules", fn))
-                   for fn in ("Setup.dist", "Setup.local"))
+def _python_build():
+    for fn in ("Setup.dist", "Setup.local"):
+        if os.path.isfile(os.path.join(project_base, "Modules", fn)):
+            return True
+    return False
+python_build = _python_build()
 
 
 def get_python_version():


More information about the Python-checkins mailing list