From 4d2859faa97b99c4123edc1b9c391611cc700df8 Mon Sep 17 00:00:00 2001 From: dineshbaburam91 Date: Wed, 10 Apr 2024 12:46:31 +0530 Subject: [PATCH] Updated custom juniper paramiko --- requirements.txt | 1 - setup.py | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c18bc21d0..c318527ec 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ lxml>=3.2.4 # ncclient version 0.6.10 has issues with PyEZ(junos-eznc) and needs to be avoided ncclient>=0.6.15 -paramiko>=1.15.2 scp>=0.7.0 jinja2>=2.7.1 PyYAML>=5.1 diff --git a/setup.py b/setup.py index 9971110f7..6d2726131 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,15 @@ from setuptools import setup, find_packages import versioneer +import pip +def install(package): + if hasattr(pip, 'main'): + pip.main(['install', package]) + else: + pip._internal.main(['install', package]) + +# Install customer paramiko +install("git+https://github.com/Juniper/paramiko.git") # parse requirements req_lines = [line.strip() for line in open("requirements.txt").readlines()] install_reqs = list(filter(None, req_lines))