mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user