diff options
author | Marc-André Lemburg <mal@egenix.com> | 2008-02-05 14:50:40 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2008-02-05 14:50:40 (GMT) |
commit | 2db7cd3ae2fbf8c4acde0b31f28c5c3a1e1d1bb8 (patch) | |
tree | 226d22779a7397c09a0d02cf1d03a9e13c5495b9 /Lib/distutils | |
parent | 1cf0522f26c3c40e6d786f38db220197558a973a (diff) | |
download | cpython-2db7cd3ae2fbf8c4acde0b31f28c5c3a1e1d1bb8.zip cpython-2db7cd3ae2fbf8c4acde0b31f28c5c3a1e1d1bb8.tar.gz cpython-2db7cd3ae2fbf8c4acde0b31f28c5c3a1e1d1bb8.tar.bz2 |
Keep distutils Python 2.1 compatible (or even Python 2.4 in this case).
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/sysconfig.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index 3cd647b..1aaaa28 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -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(): |