Comments (5)
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.
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.
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.
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.
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)
- Bootstrap.py unable to install zc.buildout HOT 3
- PEP 503 has not been implemented HOT 2
- In case of problems -- where the heck is the logfile? HOT 1
- Get rid of that ValueError: need more than 0 values to unpack HOT 2
- Can't install uWSGI egg HOT 2
- Make can fail if modules exist in ~/.local
- Variable defined with initial += is undefined and .installed.cfg corrupted HOT 1
- Fail to install when trying to use package with pyproject.toml in develop HOT 1
- Cannot install recently created source distributions. HOT 6
- ImportError: cannot import name 'packaging' from 'pkg_resources' with setuptools 70 HOT 7
- Python 3.13 support: no module named 'distutils' HOT 2
- Cannot develop pyproject.toml only packages HOT 1
- can't install binary only ujson HOT 2
- Distutils not found in python3.13 HOT 2
- Multiple +=/-= in one file loses assignment in a previous file HOT 1
- CircleCI Linux image brownout and deprecation HOT 1
- Python 2.7 test command is broken HOT 2
- PyPI rights HOT 4
- Tests: SetuptoolsDeprecationWarning: Invalid dash-separated options
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 buildout.