diff --git a/tasks/vendoring/patches/vendor/pipdeptree-updated-pip18.patch b/tasks/vendoring/patches/vendor/pipdeptree-updated-pip18.patch index 01501e62..778405e4 100644 --- a/tasks/vendoring/patches/vendor/pipdeptree-updated-pip18.patch +++ b/tasks/vendoring/patches/vendor/pipdeptree-updated-pip18.patch @@ -7,10 +7,10 @@ index 7820aa5..2082fc8 100644 from ordereddict import OrderedDict -try: -- from pip._internal import get_installed_distributions -- from pip._internal.operations.freeze import FrozenRequirement +- from pipenv.patched.notpip._internal import get_installed_distributions +- from pipenv.patched.notpip._internal.operations.freeze import FrozenRequirement -except ImportError: -- from pip import get_installed_distributions, FrozenRequirement +- from pipenv.patched.notpip import get_installed_distributions, FrozenRequirement +pardir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +sys.path.append(pardir) +from pipenv.vendor.pip_shims import get_installed_distributions, FrozenRequirement