From a0b75cc46042f031366d4206e8613dc336a9767f Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Sat, 12 Oct 2019 20:08:27 -0400 Subject: [PATCH] Remove intermediate pip-wheel-metadata dir Previously this was located in the source directory itself, but now that we're using a temporary directory, there's no need for pip-wheel-metadata. --- src/pip/_internal/req/req_install.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/pip/_internal/req/req_install.py b/src/pip/_internal/req/req_install.py index 5f1fdb74b1e..5a8c0dc14d1 100644 --- a/src/pip/_internal/req/req_install.py +++ b/src/pip/_internal/req/req_install.py @@ -591,14 +591,10 @@ def prepare_pep517_metadata(self): assert self.pep517_backend is not None # NOTE: This needs to be refactored to stop using atexit - temp_dir = TempDirectory(kind="modern-metadata") - atexit.register(temp_dir.cleanup) + metadata_tmpdir = TempDirectory(kind="modern-metadata") + atexit.register(metadata_tmpdir.cleanup) - metadata_dir = os.path.join( - temp_dir.path, - 'pip-wheel-metadata', - ) - ensure_dir(metadata_dir) + metadata_dir = metadata_tmpdir.path with self.build_env: # Note that Pep517HookCaller implements a fallback for