Skip to content

Pin version of setuptools to support pkg_resources API#1316

Open
tcv-git wants to merge 1 commit intoespressif:masterfrom
tcv-git:setuptool
Open

Pin version of setuptools to support pkg_resources API#1316
tcv-git wants to merge 1 commit intoespressif:masterfrom
tcv-git:setuptool

Conversation

@tcv-git
Copy link
Copy Markdown

@tcv-git tcv-git commented Mar 19, 2026

Description

The script tools/check_python_dependencies.py uses the pkg_resources API, which was deprecated in Python 3.12 and has been removed in setuptools version 81.

This makes the export.sh script unusable.

Updating requirements.txt to versions older than this fixes the problem.

Related

This issue is #1309

A more complicated pull request is available at #1314
this fixes the problem by updating the API.

This pull request is provided as a simpler solution which can hopefully be approved and merged more quickly.

Testing

Run install.sh and then source export.sh. It now reports success.

Checklist

Before submitting a Pull Request, please ensure the following:

  • [x ] 🚨 This PR does not introduce breaking changes.
  • [x ] All CI checks (GH Actions) pass.
  • [x ] Documentation is updated as needed.
  • [x ] Tests are updated or added as necessary.
  • [x ] Code is well-commented, especially in complex areas.
  • [x ] Git history is clean — commits are squashed to the minimum necessary.

@emeb
Copy link
Copy Markdown

emeb commented Mar 25, 2026

I've had to do this as well, and actually it works with setuptools<82 too.

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

Successfully merging this pull request may close these issues.

2 participants