Comments (4)
In case it's useful, I saw this today when installing without admin rights on a CentOS 6
system, which I was using a Python 2.7.11
module, to get around a known problem with SSL libraries when using the native Python
.
from vsc-install.
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.
from vsc-install.
I think the proper fix here is to switch to using pkgutil.extend_path
rather than pkg_resources.declare_namespace
, which works fine with pip
, see also https://packaging.python.org/guides/packaging-namespace-packages/#creating-a-namespace-package .
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 pkgutil.extend_path
somewhere, we have to start using it in all other vsc-*
packages on short notice, since it doesn't mix well with pkg_resources.declare_namespace
from vsc-install.
We used to have declare namespace but this didn't work for zipped eggs (iirc), see discussion in
#21
and pr where we switched from declare namespace to extend_path: #6
it also failed for some other reasons
and my answer to my own question here:
https://stackoverflow.com/questions/12040689/add-a-subdirectory-to-a-python-namespace/12041007#12041007
but if you got it working in EB, you might have found the correct workarounds?
from vsc-install.
Related Issues (20)
- line too long in doc string
- be able to pass setup.py options through tox
- report setuptools version HOT 1
- vsc-install asks for credentials when using tox HOT 4
- support shellcheck in Jenkinsfile
- vsc-install should test for spaces around operators in 'requires'
- unclosed file HOT 1
- RuntimeError: setuptools >= 41 required to build
- usage of /usr/bin/python in the stripped-env en noenv wrappers HOT 1
- remove flake8 version limit once new prospector that is compatible with pyflakes 2.3 is released HOT 1
- test RPM build via commontest
- run tests with python 3.9
- vsc-install should provide an option to generate github actions workflow file HOT 1
- python 3.12 removes distutils
- allow vsc-install to create correct setup.cfg's HOT 2
- add support for more fields in setup.cfg HOT 1
- check_header function should signal what is exactly wrong
- "python setup.py check -r -s" should be run as a part of "python setup.py test"
- Tests fail: Can't find location of testsuite directory test in /usr/ports/devel/py-vsc-install/work-py27/vsc-install-0.11.2 HOT 4
- "python setup.py bdist_rpm" doesn't replace shebang lines in scripts with recent setuptools HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vsc-install.