From 79ec052464ce8fb402fa2b736b1ab503a6046277 Mon Sep 17 00:00:00 2001 From: Jose Abuchaem Date: Tue, 26 Feb 2019 12:11:28 -0300 Subject: [PATCH] fix for newer versions of pip --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0f51d44..3268713 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,10 @@ use_setuptools() from setuptools import setup, find_packages -from pip.req import parse_requirements +try: # for pip >= 10 + from pip._internal.req import parse_requirements +except ImportError: # for pip <= 9.0.3 + from pip.req import parse_requirements with open('README.md') as readme_file: