Fix Python 3.13 dependency issues: cffi 1.17.1, pin setuptools<82#512
Open
lgelauff wants to merge 1 commit into
Open
Fix Python 3.13 dependency issues: cffi 1.17.1, pin setuptools<82#512lgelauff wants to merge 1 commit into
lgelauff wants to merge 1 commit into
Conversation
cffi==1.16.0 has no pre-built wheel for Python 3.13 and fails to compile from source on Toolforge (missing libffi-dev headers). Bumped to 1.17.1 which ships a Python 3.13 wheel. setuptools 82.0.0 removed pkg_resources entirely. python-graph-core uses pkg_resources for namespace package declarations, causing ModuleNotFoundError on startup. Pinned to 81.0.0 until python-graph-core is replaced (#421). Discovered during Python 3.13 Toolforge deployment of #505. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Collaborator
Author
|
Blocked on #505. |
lgelauff
added a commit
that referenced
this pull request
May 4, 2026
cffi 1.16.0 ships a cp39 manylinux wheel but not a cp313 one, so pip falls back to compiling from source on Python 3.13. The slim image has no C toolchain. gcc and libffi-dev are the standard build requirements for cffi. The underlying fix (cffi>=1.17.1, which has cp313 wheels) is tracked in #512. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
lgelauff
added a commit
that referenced
this pull request
May 4, 2026
cffi 1.17.1 adds cp313 wheels, eliminating source compilation on Python 3.13 (and the need for gcc in the CI image). setuptools is pinned <82 because setuptools 82 removed pkg_resources, which python-graph-core depends on via namespace packages. Remove once python-graph-core is replaced (#421). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Python 3.13 compatibility issues discovered during Toolforge beta deployment of #505.
cffi1.16.0 → 1.17.1: no pre-built wheel for Python 3.13 on 1.16.0, source build fails on Toolforge (missinglibffi-devheaders)setuptools==81.0.0: setuptools 82 removedpkg_resourcesentirely;python-graph-coredepends on it via namespace package declarations, causingModuleNotFoundErroron startup. Remove this pin oncepython-graph-coreis replaced (tracked in Automate setuptools installation #421)Keep as draft until #505 merges.
🤖 Generated with Claude Code