Skip to content

Commit

Permalink
Remove intermediate pip-wheel-metadata dir
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chrahunt authored and xavfernandez committed Oct 13, 2019
1 parent 1c3f31c commit a0b75cc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/pip/_internal/req/req_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0b75cc

Please sign in to comment.