diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-02-15 08:43:20 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-02-15 08:43:22 -0500 |
commit | 9732946b82f9e064603a31d3591783e867b7359c (patch) | |
tree | c9fb203c7468d32dd21e3ca4e968719693f98c2b | |
parent | 874b7ef017c0d1b2de55d4aedfdc316856ae3081 (diff) | |
download | external_python_setuptools-9732946b82f9e064603a31d3591783e867b7359c.tar.gz external_python_setuptools-9732946b82f9e064603a31d3591783e867b7359c.tar.bz2 external_python_setuptools-9732946b82f9e064603a31d3591783e867b7359c.zip |
Avoid installing setuptools 45 on Python 2.
Because Requires-Python is disabled for Python 2 to allow this declared-incompatible version to install on Python 2, the build-requirements must exclude installing setuptools 45 during the build-system setup.
Because Python 2 tests are only needed for internal validation, and because the latest pip is already installed, the build-system can rely on `backend-path = ["."]`.
Fixes #1996.
-rw-r--r-- | pyproject.toml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pyproject.toml b/pyproject.toml index f0fd8521..cfdc2574 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,9 @@ [build-system] -requires = ["setuptools >= 40.8", "wheel"] +requires = [ + # avoid self install on Python 2; ref #1996 + "setuptools >= 40.8; python_version > '3'", + "wheel", +] build-backend = "setuptools.build_meta" backend-path = ["."] |