pip install . confused by _trial_temp #2104

Closed
opened 2013-11-13 22:20:32 +00:00 by nejucomo · 1 comment

For some reason pip install . in a new virtualenv, with a dirty working directory does a lot of useless work and gets confused by _trial_temp.

It should ignore _trial_temp.

Here's a transcript:

$ pip install .
Unpacking /home/n/sandbox/lafs-tools/tahoe-lafs
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/home/n/virtualenvs/tahoe-summit/local/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/home/n/virtualenvs/tahoe-summit/local/lib/python2.7/site-packages/pip/commands/install.py", line 236, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/home/n/virtualenvs/tahoe-summit/local/lib/python2.7/site-packages/pip/req.py", line 1092, in prepare_files
    self.unpack_url(url, location, self.is_download)
  File "/home/n/virtualenvs/tahoe-summit/local/lib/python2.7/site-packages/pip/req.py", line 1234, in unpack_url
    return unpack_file_url(link, loc)
  File "/home/n/virtualenvs/tahoe-summit/local/lib/python2.7/site-packages/pip/download.py", line 420, in unpack_file_url
    shutil.copytree(source, location)
  File "/usr/lib/python2.7/shutil.py", line 208, in copytree
    raise Error, errors
Error: [('/home/n/sandbox/lafs-tools/tahoe-lafs/_trial_temp/cli/Cp/dangling_symlink_vs_recursion/dir/link', '/home/n/tmp/pip-hm4RZH-build/_trial_temp/cli/Cp/dangling_symlink_vs_recursion/dir/link', "[Errno 2] No such file or directory: '/home/n/sandbox/lafs-tools/tahoe-lafs/_trial_temp/cli/Cp/dangling_symlink_vs_recursion/dir/link'"), ('/home/n/sandbox/lafs-tools/tahoe-lafs/_trial_temp/allmydata.test.test_cli/Backup/test_ignore_symlinks/jCgDjH/home/foo2.txt', '/home/n/tmp/pip-hm4RZH-build/_trial_temp/allmydata.test.test_cli/Backup/test_ignore_symlinks/jCgDjH/home/foo2.txt', "[Errno 2] No such file or directory: '/home/n/sandbox/lafs-tools/tahoe-lafs/_trial_temp/allmydata.test.test_cli/Backup/test_ignore_symlinks/jCgDjH/home/foo2.txt'")]

Storing complete log in /home/n/.pip/pip.log
For some reason `pip install .` in a new virtualenv, with a dirty working directory does a lot of useless work and gets confused by `_trial_temp`. It should ignore `_trial_temp`. Here's a transcript: ``` $ pip install . Unpacking /home/n/sandbox/lafs-tools/tahoe-lafs Cleaning up... Exception: Traceback (most recent call last): File "/home/n/virtualenvs/tahoe-summit/local/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/home/n/virtualenvs/tahoe-summit/local/lib/python2.7/site-packages/pip/commands/install.py", line 236, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/home/n/virtualenvs/tahoe-summit/local/lib/python2.7/site-packages/pip/req.py", line 1092, in prepare_files self.unpack_url(url, location, self.is_download) File "/home/n/virtualenvs/tahoe-summit/local/lib/python2.7/site-packages/pip/req.py", line 1234, in unpack_url return unpack_file_url(link, loc) File "/home/n/virtualenvs/tahoe-summit/local/lib/python2.7/site-packages/pip/download.py", line 420, in unpack_file_url shutil.copytree(source, location) File "/usr/lib/python2.7/shutil.py", line 208, in copytree raise Error, errors Error: [('/home/n/sandbox/lafs-tools/tahoe-lafs/_trial_temp/cli/Cp/dangling_symlink_vs_recursion/dir/link', '/home/n/tmp/pip-hm4RZH-build/_trial_temp/cli/Cp/dangling_symlink_vs_recursion/dir/link', "[Errno 2] No such file or directory: '/home/n/sandbox/lafs-tools/tahoe-lafs/_trial_temp/cli/Cp/dangling_symlink_vs_recursion/dir/link'"), ('/home/n/sandbox/lafs-tools/tahoe-lafs/_trial_temp/allmydata.test.test_cli/Backup/test_ignore_symlinks/jCgDjH/home/foo2.txt', '/home/n/tmp/pip-hm4RZH-build/_trial_temp/allmydata.test.test_cli/Backup/test_ignore_symlinks/jCgDjH/home/foo2.txt', "[Errno 2] No such file or directory: '/home/n/sandbox/lafs-tools/tahoe-lafs/_trial_temp/allmydata.test.test_cli/Backup/test_ignore_symlinks/jCgDjH/home/foo2.txt'")] Storing complete log in /home/n/.pip/pip.log ```
nejucomo added the
packaging
normal
defect
1.10.0
labels 2013-11-13 22:20:32 +00:00
nejucomo added this to the undecided milestone 2013-11-13 22:20:32 +00:00
daira commented 2015-01-14 00:31:48 +00:00
Owner

Duplicate of #2210.

Duplicate of #2210.
tahoe-lafs added the
duplicate
label 2015-01-14 00:31:48 +00:00
daira closed this issue 2015-01-14 00:31:48 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#2104
No description provided.