diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-01-12 10:13:09 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-01-12 11:44:40 -0500 |
| commit | 8e6b9933e9981fc9ab19eef3dee93d0f703c4140 (patch) | |
| tree | 6651359e419a7a2d5041ff073b8f929fe865962d /tools | |
| parent | 335937785a05d68efa291b8710270584d15b8361 (diff) | |
| download | python-setuptools-git-8e6b9933e9981fc9ab19eef3dee93d0f703c4140.tar.gz | |
Restore testing on Python 2, bypassing the requires-python check when installing setuptools.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/tox_pip.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/tox_pip.py b/tools/tox_pip.py index f592e412..06655fe4 100644 --- a/tools/tox_pip.py +++ b/tools/tox_pip.py @@ -1,3 +1,4 @@ +import os import subprocess import sys @@ -14,6 +15,10 @@ def remove_setuptools(): def pip(args): + # Honor requires-python when installing test suite dependencies + if any('-r' in arg for arg in args): + os.environ['PIP_IGNORE_REQUIRES_PYTHON'] = '0' + # When installing '.', remove setuptools '.' in args and remove_setuptools() |
