d4757ae
1
2
3
4
5
6
7
8
9
10
11
import sys def pip_install(*args): import subprocess # nosec - disable B404:import-subprocess check cli_args = [] for arg in args: cli_args.extend(str(arg).split(" ")) subprocess.run([sys.executable, "-m", "pip", "install", *cli_args], check=True)