Skip to content

Instantly share code, notes, and snippets.

@hltbra
Created March 25, 2011 02:36
Show Gist options
  • Save hltbra/886268 to your computer and use it in GitHub Desktop.
Save hltbra/886268 to your computer and use it in GitHub Desktop.
Patch from Peter Waller: Prevent 'pip bundle' from trying to copy the package to the build-bundle twice.
# HG changeset patch -- Bitbucket.org
# Project pip
# URL https://bitbucket.org/pwaller/pip/overview
# User Peter Waller <peter.waller@gmail.com>
# Date 1290443993 -3600
# Node ID 4ab07b7bde7886d5e1021d8ae7723bd3137fb3e7
# Parent 69b27453590266fca0706cef63569397b114e8e2
Prevent 'pip bundle' from trying to copy the package to the build-bundle twice.
--- a/pip/req.py
+++ b/pip/req.py
@@ -947,6 +947,7 @@ class RequirementSet(object):
#@@ sketchy way of identifying packages not grabbed from an index
if bundle and req_to_install.url:
self.copy_to_build_dir(req_to_install)
+ install = False
if not is_bundle and not self.is_download:
## FIXME: shouldn't be globally added:
finder.add_dependency_links(req_to_install.dependency_links)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment