-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixes #2952 Signed-off-by: Dan Ryan <dan@danryan.co>
- Loading branch information
1 parent
b06ba8b
commit be0594e
Showing
3 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixed a bug with importing local vendored dependencies when running ``pipenv graph``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
tasks/vendoring/patches/vendor/pipdeptree-updated-pip18.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
diff --git a/pipenv/vendor/pipdeptree.py b/pipenv/vendor/pipdeptree.py | ||
index 7820aa5..9cce032 100644 | ||
index 7820aa5..2082fc8 100644 | ||
--- a/pipenv/vendor/pipdeptree.py | ||
+++ b/pipenv/vendor/pipdeptree.py | ||
@@ -13,11 +13,7 @@ try: | ||
@@ -13,11 +13,9 @@ try: | ||
except ImportError: | ||
from ordereddict import OrderedDict | ||
|
||
-try: | ||
- from pipenv.patched.notpip._internal import get_installed_distributions | ||
- from pipenv.patched.notpip._internal.operations.freeze import FrozenRequirement | ||
- from pip._internal import get_installed_distributions | ||
- from pip._internal.operations.freeze import FrozenRequirement | ||
-except ImportError: | ||
- from pipenv.patched.notpip import get_installed_distributions, FrozenRequirement | ||
- from pip 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 | ||
|
||
import pkg_resources | ||
# inline: | ||
# inline: |