Skip to content

Commit

Permalink
Pin to pip 19.0 for now for pypa/pip#6434.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 24, 2019
1 parent 51f1389 commit 123b0b2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions 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()
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -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 =
Expand Down

0 comments on commit 123b0b2

Please sign in to comment.