diff options
author | Antoine Pitrou <pitrou@free.fr> | 2018-07-16 17:03:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-16 17:03:03 (GMT) |
commit | 961d54c5c1916c09883ebcf7191babc969e5a5cf (patch) | |
tree | 26c7252e3864548cd24c1e6df3a82c2de9f858dc /Lib | |
parent | 35c0809158be7feae4c4f877a08b93baea2d8291 (diff) | |
download | cpython-961d54c5c1916c09883ebcf7191babc969e5a5cf.zip cpython-961d54c5c1916c09883ebcf7191babc969e5a5cf.tar.gz cpython-961d54c5c1916c09883ebcf7191babc969e5a5cf.tar.bz2 |
bpo-32430: Rename Modules/Setup.dist to Modules/Setup (GH-8229)
bpo-32430: Rename Modules/Setup.dist to Modules/Setup
Remove the necessity to copy the former manually to the latter when updating the local source tree.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/sysconfig.py | 4 | ||||
-rw-r--r-- | Lib/sysconfig.py | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index e07a6c8..b433fc8 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -36,10 +36,8 @@ if (os.name == 'nt' and # python_build: (Boolean) if true, we're either building Python or # building an extension with an un-installed Python, so we use # different (hard-wired) directories. -# Setup.local is available for Makefile builds including VPATH builds, -# Setup.dist is available on Windows def _is_python_source_dir(d): - for fn in ("Setup.dist", "Setup.local"): + for fn in ("Setup", "Setup.local"): if os.path.isfile(os.path.join(d, "Modules", fn)): return True return False diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 9ee4d31..e0f9c18 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -119,7 +119,7 @@ if "_PYTHON_PROJECT_BASE" in os.environ: _PROJECT_BASE = _safe_realpath(os.environ["_PYTHON_PROJECT_BASE"]) def _is_python_source_dir(d): - for fn in ("Setup.dist", "Setup.local"): + for fn in ("Setup", "Setup.local"): if os.path.isfile(os.path.join(d, "Modules", fn)): return True return False |