adding support for pip version >=19.3 by supporting change to PipSession() location in setup.py
This commit is contained in:
parent
9576fa4b0f
commit
48d8e1d235
6
setup.py
6
setup.py
|
@ -23,7 +23,11 @@ from setuptools import setup, find_packages
|
||||||
from subprocess import check_output
|
from subprocess import check_output
|
||||||
|
|
||||||
import pip
|
import pip
|
||||||
if tuple(map(int, pip.__version__.split('.'))) >= (10, 0, 0):
|
if tuple(map(int, pip.__version__.split('.'))) >= (19, 3, 0):
|
||||||
|
from pip._internal.network.session import PipSession
|
||||||
|
from pip._internal.req import parse_requirements
|
||||||
|
|
||||||
|
elif tuple(map(int, pip.__version__.split('.'))) >= (10, 0, 0):
|
||||||
from pip._internal.download import PipSession
|
from pip._internal.download import PipSession
|
||||||
from pip._internal.req import parse_requirements
|
from pip._internal.req import parse_requirements
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue