GithubHelp home page GithubHelp logo

Comments (5)

nishantvarma avatar nishantvarma commented on September 26, 2024

I also asked in pypa/setuptools#4264. However, it seems to be an issue with how Buildout does things -- it should be able to filter out irrelevant packages much earlier (it does so for C-Python packages etc.). Pip also downloads packages correctly.

from buildout.

icemac avatar icemac commented on September 26, 2024

This seems to happen since Python 3.8 – for yet unknown reasons.

Please try the following setting, either in ~/.buildout/default.cfg or in your project's buildout.cfg:

[buildout]
abi-tag-eggs = true

It puts the eggs into separate directories depending on their ABI version.

from buildout.

nishantvarma avatar nishantvarma commented on September 26, 2024

Thanks, @icemac. I tried that -- it still downloads the Python 38 wheel. It does create a folder called eggs/cp310/pkg-7.3.0-py3.10.egg but it the Python 38 contents. I think it should be solved during resolution/download (like pip does for the same package)? Let me know if you have any other suggestions.

As of now, the only workaround I can think of is to pre-fetch the wheels using Pip or something; but that will have to be done outside of Buildout. A simple example is:

for pkg in $(buildout -c buildout.cfg annotate versions | grep "=" |sed "s/= /==/g"); do
    pip download --no-deps --ignore-requires-python -d downloads "$pkg" || true
done

It can even be a plugin.

from buildout.

gotcha avatar gotcha commented on September 26, 2024

Did you check if you would have a cached wrong download ?

This could happen if you have set download-cache in your .buildout/download-cache.

from buildout.

nishantvarma avatar nishantvarma commented on September 26, 2024

I always set download-cache to downloads/dist. When it is empty, it downloads pkg-py38.whl to cache and converts it as eggs/pkg-py310.eggs. If I manually download pkg-py310.whl to cache, it picks that and converts correctly (it still checks server for something else -- despite disabling newest -- but that doesn't seem to impact) . We wrote a wrapper that populates the cache correctly ATM. I think the download logic has some problems. Didn't get time to check further.

from buildout.

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.