Skip to content

Commit a0b75cc

Browse files
chrahuntxavfernandez
authored andcommitted
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.
1 parent 1c3f31c commit a0b75cc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/pip/_internal/req/req_install.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -591,14 +591,10 @@ def prepare_pep517_metadata(self):
591591
assert self.pep517_backend is not None
592592

593593
# NOTE: This needs to be refactored to stop using atexit
594-
temp_dir = TempDirectory(kind="modern-metadata")
595-
atexit.register(temp_dir.cleanup)
594+
metadata_tmpdir = TempDirectory(kind="modern-metadata")
595+
atexit.register(metadata_tmpdir.cleanup)
596596

597-
metadata_dir = os.path.join(
598-
temp_dir.path,
599-
'pip-wheel-metadata',
600-
)
601-
ensure_dir(metadata_dir)
597+
metadata_dir = metadata_tmpdir.path
602598

603599
with self.build_env:
604600
# Note that Pep517HookCaller implements a fallback for

0 commit comments

Comments
 (0)