diff options
-rw-r--r-- | pin-pip.py | 20 | ||||
-rw-r--r-- | tox.ini | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/pin-pip.py b/pin-pip.py new file mode 100644 index 0000000..4cf0383 --- /dev/null +++ b/pin-pip.py @@ -0,0 +1,20 @@ +""" +Downgrade to pip 19.0 before installing requirements, working +around limitations introduced in 19.1 (ref +https://github.com/pypa/pip/issues/6434) +""" + +import sys +import subprocess +import shlex + + +def main(): + subprocess.check_call(shlex.split( + 'python -m pip install pip<19.1' + )) + subprocess.check_call(shlex.split( + 'python -m pip install') + sys.argv[1:]) + + +__name__ == '__main__' and main() @@ -5,6 +5,7 @@ minversion = 3.2 tox_pip_extensions_ext_venv_update = true [testenv] +install_command = python pin-pip.py {opts} {packages} deps = setuptools>=31.0.1 commands = |