Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setuptools.dep_util is deprecated and will be removed soon. Alternative suggested is setuptools.modified. #208

Open
abravalheri opened this issue May 15, 2024 · 2 comments

Comments

@abravalheri
Copy link

from setuptools.dep_util import newer_group

This is the warning currently in place
https://github.com/pypa/setuptools/blob/v69.5.1/setuptools/dep_util.py#L5-L16.

@seanbudd
Copy link

seanbudd commented May 22, 2024

Hi - this is now broken with setuptools 70 which just has been released, now you must pin setuptools to v69.5.1

https://setuptools.pypa.io/en/stable/history.html#deprecations-and-removals

See our approach here for fixing your build environment:
nvaccess/nvda#16587

@dpy013
Copy link

dpy013 commented May 22, 2024

cc @albertosottile

seanbudd added a commit to nvaccess/nvda that referenced this issue May 23, 2024
Summary of the issue:
setuptools has been updated, breaking support with py2exe: py2exe/py2exe#208.

When installing packages, pip automatically pulls in the latest build dependences as specified in PEP 518.
pip creates a custom temporary build environment to install packages using the latest pip environment.

Description of development approach
Create a pyproject.toml to specify the build environment we are using.
packaging.python.org/en/latest/guides/writing-pyproject-toml

Use the flag no-build-isolation when installing requirements.txt.
This prevent pip from using the custom build environment and automatically pulling the latest setuptools when installing packages.

As such, we need to manually install the desired version of setuptools, and manually install pip's dependency wheel.
stackoverflow.com/questions/62889093/what-does-no-build-isolation-do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants