You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using blackbox to manage my secrets, it changes the gpg homedir to $GIT_REPO/keyrings/live forcing the gpg-agent to create a socket named $GIT_REPO/keyrings/live/S.gpg-agent, since my setup.py is side-by-side with the keyringspip wheel . fails:
Exception:
Traceback (most recent call last):
File "/home/hack/work/envs/oca-2.7/lib/python2.7/site-packages/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/home/hack/work/envs/oca-2.7/lib/python2.7/site-packages/pip/commands/wheel.py", line 194, in run
if not wb.build():
File "/home/hack/work/envs/oca-2.7/lib/python2.7/site-packages/pip/wheel.py", line 706, in build
self.requirement_set.prepare_files(self.finder)
File "/home/hack/work/envs/oca-2.7/lib/python2.7/site-packages/pip/req/req_set.py", line 334, in prepare_files
functools.partial(self._prepare_file, finder))
File "/home/hack/work/envs/oca-2.7/lib/python2.7/site-packages/pip/req/req_set.py", line 321, in _walk_req_to_install
more_reqs = handler(req_to_install)
File "/home/hack/work/envs/oca-2.7/lib/python2.7/site-packages/pip/req/req_set.py", line 491, in _prepare_file
session=self.session)
File "/home/hack/work/envs/oca-2.7/lib/python2.7/site-packages/pip/download.py", line 814, in unpack_url
unpack_file_url(link, location, download_dir)
File "/home/hack/work/envs/oca-2.7/lib/python2.7/site-packages/pip/download.py", line 699, in unpack_file_url
shutil.copytree(link_path, location, symlinks=True)
File "/usr/lib64/python2.7/shutil.py", line 208, in copytree
raise Error, errors
Error: [('/home/hack/work/projects/oca/keyrings/live/S.gpg-agent', '/tmp/pip-UfkYbS-build/keyrings/live/S.gpg-agent', "[Errno 6] No such device or address: '/home/hack/work/projects/oca/keyrings/live/S.gpg-agent'")]
As a work around I'm doing a first copy myself and removing the keyrings directory.
Note: $GIT_REPO is not the .git but the folder that cotains it.
The text was updated successfully, but these errors were encountered:
Issuing pip install . first tries to copy the current directory before reading setup.py and checking for setup(packages=...).
When it does this it calls shutil.copytree which can't handle sockets.
$ python
Python 2.7.9 (default, Mar 1 2015, 12:57:24)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import shutil
>>> shutil.copytree('conf', 'bla')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/shutil.py", line 208, in copytree
raise Error, errors
shutil.Error: [('conf/sharescreening.sock', 'bla/sharescreening.sock', "[Errno 6] No such device or address: 'conf/sharescreening.sock'")]
>>>
That is obvious that sockets can't be copied, so maybe pip should know about this? Ofcourse there is a work around here. But I think the issue here is that pip is bluntly using shutil.copytree.
I'm using blackbox to manage my secrets, it changes the gpg homedir to
$GIT_REPO/keyrings/live
forcing the gpg-agent to create a socket named$GIT_REPO/keyrings/live/S.gpg-agent
, since mysetup.py
is side-by-side with thekeyrings
pip wheel .
fails:As a work around I'm doing a first copy myself and removing the
keyrings
directory.Note:
$GIT_REPO
is not the.git
but the folder that cotains it.The text was updated successfully, but these errors were encountered: