Skip to content

Commit

Permalink
Updated custom juniper paramiko
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshbaburam91 committed Apr 10, 2024
1 parent 7cf0340 commit 4d2859f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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))
Expand Down

0 comments on commit 4d2859f

Please sign in to comment.