Skip to content

pip bundle throws OSError when installing from a git repo #438

Closed
@minism

Description

@minism

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions