Added support for pip v10 +

Support for pip v10, while keeping compatibility for older versions of PIP
This commit is contained in:
kddige authored and GitHub committed 2020-09-14 19:49:26 +02:00
1 parent 77f0c5e42f
commit 85612c49fc
1 file changed
+4 -1
+4 -1
View File
@@ -8,7 +8,10 @@ from pip.req import parse_requirements
__author__ = 'David Barroso <dbarrosop@dravetech.com>'
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
reqs = [str(ir.req) for ir in install_reqs]
try:
reqs = [str(ir.req) for ir in install_reqs]
except:
reqs = [str(ir.requirement) for ir in install_reqs]
setup(
name="napalm-fortios",