lf_autogen rm

Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
shivamcandela
2021-07-15 13:14:01 +05:30
53 changed files with 6146 additions and 1645 deletions

View File

@@ -14,12 +14,18 @@ import subprocess
def main():
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']
'pyshark', 'influxdb', 'influxdb-client', 'matplotlib', 'pdfkit', 'pip-search', 'pyserial', 'pexpect-serial' ,'scp', 'pyjwt']
packages_installed = []
packages_failed =[]
subprocess.call("pip3 uninstall jwt", shell=True)
for package in packages:
<<<<<<< HEAD
command = "pip3 install {} ".format(package)
res = subprocess.call(command, shell = True)
=======
command = "pip3 install {} >/tmp/pip3-stdout 2>/tmp/pip3-stderr".format(package)
res = subprocess.call(command, shell=True)
>>>>>>> 0ef021e1165cbaa612e5128bc48d6abfbb7b887b
if res == 0:
print("Package {} install SUCCESS Returned Value: {} ".format(package, res))
packages_installed.append(package)