diff --git a/10 b/10 new file mode 100644 index 00000000..e69de29b diff --git a/components/core/setup.py b/components/core/setup.py index cff0c126..7daa53cd 100644 --- a/components/core/setup.py +++ b/components/core/setup.py @@ -3,7 +3,10 @@ import inspect import platform from setuptools import setup -from pip.req import parse_requirements +try: + from pip._internal.req import parse_requirements +except ImportError: + from pip.req import parse_requirements EMAIL_CONF = 'email.conf' DL_CONF = 'dl.conf' @@ -19,8 +22,11 @@ def read(file_name): requirements_path = os.path.join(base_dir, 'requirements.txt') install_reqs = parse_requirements(requirements_path, session=False) - -requirements = [str(ir.req) for ir in install_reqs] +requirements = list(requirements_path) +try: + requirements = [str(ir.req) for ir in install_reqs] +except: + requirements = [str(ir.requirement) for ir in install_reqs] ### Set configs ### if platform.system() == 'Linux':