Comments (7)
@specialunderwear Thank you for this bugreport. For now please pin setuptools
to a version smaller than 70
until this issue is fixed.
from buildout.
Note that the whole pkg_resources
API (that buildout uses) is deprecated , there's a warning in
https://github.com/pypa/setuptools/blob/52d732434377dac92df9b50a93eb78fe743b9e24/pkg_resources/__init__.py#L104-L109 referencing https://setuptools.pypa.io/en/latest/pkg_resources.html , so it's possible that more usages becomes broken in the future.
from buildout.
I have a PR to fix this: #649
But the tests fail in the same way as they were failing earlier on master. I tried fixing it, but failed, so help would be appreciated.
from buildout.
I think that properly fixing this requires making some headway on the PEP 420 implicit namespace packages issue; I've started to make some headway on that here: https://github.com/npilon/buildout/tree/setuptools-70-prep
But:
- I've got a lot of slightly different doctest output to adjust for, including a couple of warnings I'd like to get rid of.
- The tests that create a new distribution need adjustment.
- I need
zc.recipe.testrunner
,zc.zdaemonrecipe
,zc.recipe.deployment
built using implicit namespace packages - I worked around this for some tests by creating azc.recipe.testrunner_
local just likezc.recipe.egg_
but I don't think anyone will be thrilled by that solution.
from buildout.
@npilon Your commit 0e06073 to change easy_install.py
to no longer call setup.py develop
sounds useful.
But I don't think implicit namespaces have anything to do with this.
from buildout.
My thinking was to try to deal with them all at the same time because the namespace packages style uses the same deprecated pkg_resources api, but Iβm certainly game to try to bite off smaller chunks.
Why donβt I see if I can get the tests passing with 70.0 and <70.0 using the pip-ified version, then we can discuss further changes?
from buildout.
Okay I've got a few more branches on the go now:
- master...npilon:buildout:no-more-setup-develop - this just does the
setup.py develop
topip install -e
swap. - master...npilon:buildout:pkg-resources-packaging-to-packaging - this is that plus fixes for setuptools 70
Unfortunately this results in a lot of new output from setuptools, and trying to convince it to quiet down hits some frustrating-to-handle deprecations and feature removals, as the maintainer of zstandard
details in this blog post: https://gregoryszorc.com/blog/2023/10/30/my-user-experience-porting-off-setup.py/
- master...npilon:buildout:quiet-setuptools - that's the best I could do for quieting those output lines down, but even there there's some tests that are still producing that extra output and I haven't had much luck tracking down how or why. Even then it relies on a deprecated
pip install
option, and using the new option forces setuptools into PEP-517 mode, which means it no longer produces.egg-link
files.
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
- [BUG] Incorrect wheel downloaded HOT 5
- Cannot install recently created source distributions. HOT 6
- 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.