New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip/easy_install error in some build #1486

Closed
doutriaux1 opened this Issue Aug 10, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@doutriaux1
Member

doutriaux1 commented Aug 10, 2015

@sankhesh @aashish24 I will need some kitware help with this.

Basically easy_setup/pip write an egg to:

/home/doutriaux1/build_label_spc/install/lib/python2.7/site-packages/easy-install.pth

when it adds a package.
Now since I'm using -j8 it appears that multiple pip/setup.py are writing t the file at the same time resulting in dateuitl not being in the file:

site-package listing (shows dateutil is here):

drwxrwxr-x  4 doutriaux1 doutriaux1 4.0K Aug 10 15:34 python_dateutil-2.2-py2.7.egg

DATEUTIL build/install log stipulating it writes this to easy-install.pth

creating /home/doutriaux1/build_label_spc/install/lib/python2.7/site-packages/python_dateutil-2.2-py2.7.egg
Extracting python_dateutil-2.2-py2.7.egg to /home/doutriaux1/build_label_spc/install/lib/python2.7/site-packages
Adding python-dateutil 2.2 to easy-install.pth file

Installed /home/doutriaux1/build_label_spc/install/lib/python2.7/site-packages/python_dateutil-2.2-py2.7.egg

easy-install.pth file does not actually contain the egg info:

import sys; sys.__plen = len(sys.path)
./setuptools-17.1.1-py2.7.egg
./pip-7.1.0-py2.7.egg
./six-1.9.0-py2.7.egg
./singledispatch-3.4.0.3-py2.7.egg
./cffi-0.8.2-py2.7-linux-x86_64.egg
./cryptography-0.4-py2.7-linux-x86_64.egg
./pyOpenSSL-0.14-py2.7.egg
./MyProxyClient-1.3.0-py2.7.egg
./Cython-0.22.1-py2.7-linux-x86_64.egg
./matplotlib-1.4.3-py2.7-linux-x86_64.egg
./windspharm-1.3.x-py2.7.egg
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)

@doutriaux1 doutriaux1 added this to the 2.3 milestone Aug 10, 2015

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented Aug 10, 2015

possible solution tell dateutil/pip to NOT use eggs

doutriaux1 added a commit that referenced this issue Sep 3, 2015

building dateutil w/o egg
Should fix #1486
previous commit shoud fix #1192

doutriaux1 added a commit that referenced this issue Sep 3, 2015

building dateutil w/o egg
Should fix #1486
previous commit shoud fix #1192
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment