Skip to content

Commit

Permalink
Just hardcode to delete the directory after unpacking it.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Apr 7, 2015
1 parent b02388d commit 883591c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pip/req/req_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@ def __init__(self, build_dir, src_dir, download_dir, upgrade=False,
ignore_dependencies=False, force_reinstall=False,
use_user_site=False, session=None, pycompile=True,
isolated=False, wheel_download_dir=None):
"""Create a RequirementSet.
:param wheel_download_dir: Where still-packed .whl files should be
written to. If None they are written to the download_dir parameter.
Separate to download_dir to permit only keeping wheel archives for
pip wheel.
:param download_dir: Where still packed archives should be written to.
If None they are not saved, and are deleted immediately after
unpacking.
"""
if session is None:
raise TypeError(
"RequirementSet() missing 1 required keyword argument: "
Expand Down Expand Up @@ -437,13 +447,11 @@ def _prepare_file(self, finder, req_to_install):
self.wheel_download_dir:
# when doing 'pip wheel`
download_dir = self.wheel_download_dir
do_download = True
else:
download_dir = self.download_dir
do_download = self.is_download
unpack_url(
req_to_install.link, req_to_install.source_dir,
download_dir, do_download, session=self.session,
download_dir, True, session=self.session,
)
except requests.HTTPError as exc:
logger.critical(
Expand Down

0 comments on commit 883591c

Please sign in to comment.