Commit 1e38a7bc authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Fix pip install command

* Add '--upgrade' flag
* Comma separate extras names
parent 0185d954
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -45,9 +45,12 @@ def argument_parser():
def main():
	ap = argument_parser()
	opts = ap.parse_args()
	cmd = ['pip', 'install', '-e', '.']
	if opts.extras:
		cmd.extend(f'.[{target}]' for target in opts.extras)

	join = ','.join
	cmd = [
		'pip', 'install', '--upgrade', '--editable',
		f'.[{join(opts.extras)}]' if opts.extras else '.',
	]

	proc = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
	if proc.returncode: