pypa/pip — Issue #438: pip bundle throws OSError when installing from a git repo
Author: minism
Created: 2012-01-23 18:35:48+00:00
State: open

I get this error every time on this specific git repo for some reason, no matter what the build directory (still fails if the build directory is clean). My pip version is 1.0.2.

$ pip bundle /tmp/test.bundle git+https://github.com/concentricsky/jingo.git#egg=jingo

--------------------------

Putting temporary build files in ./build-bundle and source/develop files in ./src-bundle
Downloading/unpacking jingo from git+https://github.com/concentricsky/jingo.git
Cloning https://github.com/concentricsky/jingo.git to ./build-bundle/jingo
Running setup.py egg_info for package jingo

no previously-included directories found matching 'examples'
Running setup.py egg_info for package jingo

no previously-included directories found matching 'examples'
Exception:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/commands/bundle.py", line 29, in run
requirement_set = super(BundleCommand, self).run(options, args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req.py", line 994, in prepare_files
self.copy_to_build_dir(req_to_install)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req.py", line 1065, in copy_to_build_dir
copytree(req_to_install.source_dir, dest)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/backwardcompat.py", line 104, in copytree
shutil.copytree(src, dst)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 174, in copytree
os.makedirs(dst)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '/Users/josh/work/proj/paesmem/code/build-bundle/jingo'