Tweak how we import pip internal things, for upgrade view
ugh, just kicking the can down the road here
This commit is contained in:
parent
e9533727db
commit
35875b7826
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2019 Lance Edgar
|
||||
# Copyright © 2010-2020 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -34,6 +34,11 @@ import six
|
|||
from sqlalchemy import orm
|
||||
|
||||
# TODO: pip has declared these to be "not public API" so we should find another way..
|
||||
try:
|
||||
# this works for now, with pip 20.0
|
||||
from pip._internal.network.session import PipSession
|
||||
from pip._internal.req import parse_requirements
|
||||
except ImportError:
|
||||
try:
|
||||
# this works for now, with pip 10.0.1
|
||||
from pip._internal.download import PipSession
|
||||
|
|
Loading…
Reference in a new issue