summaryrefslogtreecommitdiff
path: root/install-pip-master.py
blob: d62d20f35f28e465363cb7133bf7c3430adcce51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
In order to support installation of pep517 from source,
pip from master must be installed.
"""

import subprocess
import sys


def main():
	cmd = [
		sys.executable,
		'-m', 'pip', 'install',
		'git+https://github.com/pypa/pip',
	]
	subprocess.run(cmd)
	cmd[-1:] = sys.argv[1:]
	subprocess.run(cmd)


__name__ == '__main__' and main()