From 85612c49fce6bd5dc1b120d252322774fc24da54 Mon Sep 17 00:00:00 2001 From: kddige <53143947+kddige@users.noreply.github.com> Date: Mon, 14 Sep 2020 19:49:26 +0200 Subject: [PATCH] Added support for pip v10 + Support for pip v10, while keeping compatibility for older versions of PIP --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ce11535..d3957f4 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,10 @@ from pip.req import parse_requirements __author__ = 'David Barroso ' 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",