paylogic / pip-accel

pip-accel: Accelerator for pip, the Python package manager
https://pypi.python.org/pypi/pip-accel
MIT License
308 stars 35 forks source link

A build directory in pip cache causes failure #31

Closed davidfraser closed 9 years ago

davidfraser commented 10 years ago

pip can create a temporary build directory as a subdirectory of the download cache. If this hasn't been cleaned up successfully, then pip-accel fails:

$ ~/.virtualenvs/jenkins-job-builder/bin/pip-accel install jenkins-job-builder
Traceback (most recent call last):
  File "/home/davidf/.virtualenvs/jenkins-job-builder/bin/pip-accel", line 9, in <module>
    load_entry_point('pip-accel==0.13.2', 'console_scripts', 'pip-accel')()
  File "/home/davidf/.virtualenvs/jenkins-job-builder/local/lib/python2.7/site-packages/pip_accel/__init__.py", line 104, in main
    initialize_directories()
  File "/home/davidf/.virtualenvs/jenkins-job-builder/local/lib/python2.7/site-packages/pip_accel/__init__.py", line 426, in initialize_directories
    update_source_dists_index()
  File "/home/davidf/.virtualenvs/jenkins-job-builder/local/lib/python2.7/site-packages/pip_accel/__init__.py", line 358, in update_source_dists_index
    archive_path = os.path.join(source_index, add_extension(download_path, archive_name))
  File "/home/davidf/.virtualenvs/jenkins-job-builder/local/lib/python2.7/site-packages/pip_accel/__init__.py", line 385, in add_extension
    handle = open(download_path, 'rb')
IOError: [Errno 21] Is a directory: '/home/davidf/Download/pip-cache/build'
xolox commented 9 years ago

Thanks for the bug report and sorry for the late reply; this is now fixed!