Added support for pip v10 +
Support for pip v10, while keeping compatibility for older versions of PIP
This commit is contained in:
1 parent
77f0c5e42f
commit
85612c49fc
1 file changed
+4
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user