Keep distutils Python 2.1 compatible (or even Python 2.4 in this case).

This commit is contained in:
Marc-André Lemburg 2008-02-05 14:50:40 +00:00
parent 1cf0522f26
commit 2db7cd3ae2
1 changed files with 6 additions and 2 deletions

View File

@ -37,8 +37,12 @@ if os.name == "nt" and "\\pc\\v" in project_base[-10:].lower():
# 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():