-
Notifications
You must be signed in to change notification settings - Fork 27
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
vsc/__init__.py file missing when doing "pip install" with "--prefix=xx" #68
Comments
In case it's useful, I saw this today when installing without admin rights on a |
Since pip is claiming there isn't anything they can do about this we'll probably have to look at working around that limitation in pip. But I'm not sure how we can detect we're being used by (a broken) pip and not a working setuptools. |
I think the proper fix here is to switch to using We made that change in EasyBuild recently (see easybuilders/easybuild-framework#2836) didn't encounter any real problems since we did. The (big) downside is that once we start using |
We used to have declare namespace but this didn't work for zipped eggs (iirc), see discussion in and pr where we switched from declare namespace to extend_path: #6 it also failed for some other reasons but if you got it working in EB, you might have found the correct workarounds? |
I use python 2.7.13 and pip 9.0.1 to install Easybuild 3.1.0 with the following command:
$ pip install --install-option "--prefix=${PWD}/EasyBuild" easybuild
Executable
eb
is generated. PATH and PYTHONAPTH are correctly set. While doing command:eb --version
I got the following error:
The error occurs because of the absence of
vsc/__init__.py
. @boegel checked that when using pip, we have:WARN: Skipping installation of /mnt/home_local/eocoe/liang/ECAM/EB/EB-Liang/EasyBuild/lib/python2.7/site-packages/vsc/__init__.py (namespace package)
This is a pip issue that has already reported to
pip in github
, see (pypa/pip#1924)One temporary solution for those who want to use
pip install
with their ownPREFIX
is, after thepip install
command, do:touch ${PREFIX}/lib/python2.7/site-packages/vsc/__init__.py
The problem should the be solved.
Further actions may relate to the setup.py of vsc_base. We may let the program detect the case when doing
pip install
withPREFIX
and force the program to create__init__.py
instead of skipping it.The text was updated successfully, but these errors were encountered: