From 7cd996e12dc53c1d6201fc7d769ff626baf14247 Mon Sep 17 00:00:00 2001 From: YorkHe Date: Fri, 11 May 2018 16:33:50 +0800 Subject: [PATCH] Fix setup.py for pip10 --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 58019bd..c00745c 100644 --- a/setup.py +++ b/setup.py @@ -5,8 +5,11 @@ except ImportError: from distutils.core import setup +try: + from pip._internal.req import parse_requirements +except ImportError: + from pip.req import parse_requirements -from pip.req import parse_requirements from distutils.core import Extension import plasma