Skip to content

Commit 123b0b2

Browse files
committed
Pin to pip 19.0 for now for pypa/pip#6434.
1 parent 51f1389 commit 123b0b2

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

pin-pip.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""
2+
Downgrade to pip 19.0 before installing requirements, working
3+
around limitations introduced in 19.1 (ref
4+
https://github.com/pypa/pip/issues/6434)
5+
"""
6+
7+
import sys
8+
import subprocess
9+
import shlex
10+
11+
12+
def main():
13+
subprocess.check_call(shlex.split(
14+
'python -m pip install pip<19.1'
15+
))
16+
subprocess.check_call(shlex.split(
17+
'python -m pip install') + sys.argv[1:])
18+
19+
20+
__name__ == '__main__' and main()

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ minversion = 3.2
55
tox_pip_extensions_ext_venv_update = true
66

77
[testenv]
8+
install_command = python pin-pip.py {opts} {packages}
89
deps =
910
setuptools>=31.0.1
1011
commands =

0 commit comments

Comments
 (0)