We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0533933 commit 4cf8ab3Copy full SHA for 4cf8ab3
setup.py
@@ -1,8 +1,14 @@
1
"""This module contains the packaging routine for the pybook package"""
2
3
from setuptools import setup, find_packages
4
-from pip.download import PipSession
5
-from pip.req import parse_requirements
+try:
+ from pip.download import PipSession
6
+ from pip.req import parse_requirements
7
+except ImportError:
8
+ # It is quick hack to support pip 10 that has changed its internal
9
+ # structure of the modules.
10
+ from pip._internal.download import PipSession
11
+ from pip._internal.req.req_file import parse_requirements
12
13
14
def get_requirements(source):
0 commit comments