Coding style.
- Using subprocess.run
This commit is contained in:
parent
5715ab8ea9
commit
320670bb43
6 changed files with 16 additions and 13 deletions
|
|
@ -20,8 +20,11 @@ if pip_deps:
|
|||
if pip3_deps:
|
||||
dist_deps.add("python3-pip")
|
||||
if dist_deps:
|
||||
subprocess.check_call(["sudo", "apt-get", "-y", "install"] + list(dist_deps))
|
||||
subprocess.run(["sudo", "apt-get", "-y", "install"] + list(dist_deps),
|
||||
check=True)
|
||||
if pip_deps:
|
||||
subprocess.check_call(["sudo", "pip", "install"] + list(pip_deps))
|
||||
subprocess.run(["sudo", "pip", "install"] + list(pip_deps),
|
||||
check=True)
|
||||
if pip3_deps:
|
||||
subprocess.check_call(["sudo", "pip3", "install"] + list(pip3_deps))
|
||||
subprocess.run(["sudo", "pip3", "install"] + list(pip3_deps),
|
||||
check=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue