diff --git a/news/2950.bugfix b/news/2950.bugfix new file mode 100644 index 0000000000..ac6fcb6ab3 --- /dev/null +++ b/news/2950.bugfix @@ -0,0 +1 @@ +Fix broken backport imports for vendored vistir. diff --git a/news/2955.bugfix b/news/2955.bugfix new file mode 100644 index 0000000000..ac6fcb6ab3 --- /dev/null +++ b/news/2955.bugfix @@ -0,0 +1 @@ +Fix broken backport imports for vendored vistir. diff --git a/news/2961.bugfix b/news/2961.bugfix new file mode 100644 index 0000000000..ac6fcb6ab3 --- /dev/null +++ b/news/2961.bugfix @@ -0,0 +1 @@ +Fix broken backport imports for vendored vistir. diff --git a/pipenv/vendor/vistir/backports/tempfile.py b/pipenv/vendor/vistir/backports/tempfile.py index 483a479a71..43470a6ee9 100644 --- a/pipenv/vendor/vistir/backports/tempfile.py +++ b/pipenv/vendor/vistir/backports/tempfile.py @@ -13,7 +13,7 @@ try: from weakref import finalize except ImportError: - from backports.weakref import finalize + from pipenv.vendor.backports.weakref import finalize __all__ = ["finalize", "NamedTemporaryFile"] diff --git a/tasks/vendoring/patches/vendor/vistir-imports.patch b/tasks/vendoring/patches/vendor/vistir-imports.patch index 68b14da0ba..f93e79594b 100644 --- a/tasks/vendoring/patches/vendor/vistir-imports.patch +++ b/tasks/vendoring/patches/vendor/vistir-imports.patch @@ -20,3 +20,16 @@ index 1f1b7a96..0c865fe6 100644 try: from functools import partialmethod +diff --git a/pipenv/vendor/vistir/backports/tempfile.py b/pipenv/vendor/vistir/backports/tempfile.py +index 483a479a..43470a6e 100644 +--- a/pipenv/vendor/vistir/backports/tempfile.py ++++ b/pipenv/vendor/vistir/backports/tempfile.py +@@ -13,7 +13,7 @@ import six + try: + from weakref import finalize + except ImportError: +- from backports.weakref import finalize ++ from pipenv.vendor.backports.weakref import finalize + + + __all__ = ["finalize", "NamedTemporaryFile"]