update_dependencies.py removed bash commands from subprocess.call overly complicated things.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-05-27 14:51:51 -06:00
parent b71e698ef1
commit 9e8ecb2edf

View File

@@ -18,11 +18,7 @@ def main():
packages_installed = []
packages_failed =[]
for package in packages:
command = "if ($( pip3 install {} --upgrade > /tmp/pip-out 2> /tmp/pip-err ));" \
"then echo Success;" \
"else echo Problem installing {} please run that by hand;" \
"fi".format(package, package)
command = "pip3 install {} ".format(package)
res = subprocess.call(command, shell = True)
if res == 0:
print("Package {} install SUCCESS Returned Value: {} ".format(package, res))
@@ -32,7 +28,6 @@ def main():
print("To see errors try: pip3 install {}".format(package))
packages_failed.append(package)
if len(packages_failed) > 0:
print("Install Complete")
print("Packages Installed Success: {}\n".format(packages_installed))
print("Packages Failed (Some scripts may not need these packages): {}".format(packages_failed))