diff options
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() |
