diff --git a/pipenv/vendor/pipdeptree.py b/pipenv/vendor/pipdeptree.py index 78c19e31..cd67538c 100644 --- a/pipenv/vendor/pipdeptree.py +++ b/pipenv/vendor/pipdeptree.py @@ -13,6 +13,8 @@ try: except ImportError: from ordereddict import OrderedDict +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 import pkg_resources diff --git a/tasks/vendoring/patches/vendor/pipdeptree-update-pip-import.patch b/tasks/vendoring/patches/vendor/pipdeptree-update-pip-import.patch index 83726314..9cfcfd02 100644 --- a/tasks/vendoring/patches/vendor/pipdeptree-update-pip-import.patch +++ b/tasks/vendoring/patches/vendor/pipdeptree-update-pip-import.patch @@ -1,8 +1,8 @@ diff --git a/pipenv/vendor/pipdeptree.py b/pipenv/vendor/pipdeptree.py -index 6f6f2a10..78c19e31 100644 +index 6f6f2a10..cd67538c 100644 --- a/pipenv/vendor/pipdeptree.py +++ b/pipenv/vendor/pipdeptree.py -@@ -13,13 +13,9 @@ try: +@@ -13,13 +13,11 @@ try: except ImportError: from ordereddict import OrderedDict @@ -11,6 +11,8 @@ index 6f6f2a10..78c19e31 100644 - from pipenv.patched.notpip._internal.operations.freeze import FrozenRequirement -except ImportError: - 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 -from pipenv.patched.notpip._vendor import pkg_resources