mirror of https://github.com/python/cpython
Keep distutils Python 2.1 compatible (or even Python 2.4 in this case).
This commit is contained in:
parent
1cf0522f26
commit
2db7cd3ae2
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue