mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2026-01-07 20:41:28 +00:00
update_dependencies: Fix all warnings
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import subprocess
|
||||
import argparse
|
||||
import os
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(
|
||||
prog="update_dependencies.py",
|
||||
@@ -23,15 +24,15 @@ def main():
|
||||
args = parser.parse_args()
|
||||
|
||||
print("Installing Script Python3 Dependencies")
|
||||
packages = ['pandas', 'plotly', 'numpy', 'cryptography', 'paramiko', 'bokeh','pyarrow', 'websocket-client', 'xlsxwriter',\
|
||||
'pyshark', 'influxdb', 'influxdb-client', 'matplotlib', 'pdfkit', 'pip-search', 'pyserial', 'pexpect-serial' ,'scp',\
|
||||
'dash', 'kaleido']
|
||||
packages = ['pandas', 'plotly', 'numpy', 'cryptography', 'paramiko', 'bokeh', 'pyarrow', 'websocket-client',
|
||||
'xlsxwriter', 'pyshark', 'influxdb', 'influxdb-client', 'matplotlib', 'pdfkit', 'pip-search', 'pyserial',
|
||||
'pexpect-serial', 'scp', 'dash', 'kaleido']
|
||||
if args.pyjwt:
|
||||
packages.append('pyjwt')
|
||||
else:
|
||||
print('Not installing PyJWT')
|
||||
packages_installed = []
|
||||
packages_failed =[]
|
||||
packages_failed = []
|
||||
subprocess.call("pip3 uninstall jwt", shell=True)
|
||||
subprocess.call('pip3 install --upgrade pip', shell=True)
|
||||
for package in packages:
|
||||
@@ -54,5 +55,6 @@ def main():
|
||||
return
|
||||
print("Packages Failed (Some scripts may not need these packages): {}".format(packages_failed))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user