Skip to content

Commit

Permalink
Bug fix: Cleanup temporary source directories*
Browse files Browse the repository at this point in the history
* Created when you tell pip to install from a directory containing an
  unpacked source distribution: pip copies the complete directory to
  /tmp before doing anything with it, but because this directory
  cannot be set using --build-directory pip-accel never cleaned up
  directories created in this manner.
  • Loading branch information
xolox committed Jul 12, 2014
1 parent 2c04d67 commit 6345feb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pip_accel/__init__.py
@@ -1,7 +1,7 @@
# Accelerator for pip, the Python package manager.
#
# Author: Peter Odding <peter.odding@paylogic.eu>
# Last Change: July 11, 2014
# Last Change: July 12, 2014
# URL: https://github.com/paylogic/pip-accel
#
# TODO Permanently store logs in the pip-accel directory (think about log rotation).
Expand All @@ -20,7 +20,7 @@
"""

# Semi-standard module versioning.
__version__ = '0.13.1'
__version__ = '0.13.2'

# Standard library modules.
import logging
Expand Down Expand Up @@ -257,6 +257,7 @@ def install_requirements(requirements, install_prefix=ENVIRONMENT):
requirement.source_directory, requirement.url,
prefix=install_prefix, python=python)
install_binary_dist(members, prefix=install_prefix, python=python)
requirement.pip_requirement.remove_temporary_source()
logger.info("Finished installing all requirements in %s.", install_timer)
return True

Expand Down

0 comments on commit 6345feb

Please sign in to comment.