Giter VIP home page Giter VIP logo

Comments (4)

verdurin avatar verdurin commented on August 27, 2024

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.

JensTimmerman avatar JensTimmerman commented on August 27, 2024

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.

boegel avatar boegel commented on August 27, 2024

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.

JensTimmerman avatar JensTimmerman commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.