summaryrefslogtreecommitdiff
path: root/pin-pip.py
blob: 4cf0383cffe4556bc61d819d08db377a006211c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()