Repository navigation
pybind: add pyproject.toml to fix ReadTheDocs builds with pip 25.3+ - #66966
Merged
Merged
Conversation
Contributor
Author
|
see https://app.readthedocs.org/projects/ceph/builds/31057503/ for an example of the failure. |
tchaikov
force-pushed
the
wip-pybind-build-failure
branch
from
January 19, 2026 11:35
b5f7099 to
bbb5b91
Compare
3 of 14 tasks
Contributor
Author
|
jenkins test api |
idryomov
reviewed
Jan 21, 2026
ReadTheDocs builds started failing when pip 25.3 began enforcing PEP 517
build isolation. Under build isolation, pip creates a clean temporary
environment to build packages. Without pyproject.toml declaring build
dependencies, Cython is not available in this isolated environment,
causing builds to fail.
Error from failing builds:
Processing ./src/pybind/rados
Getting requirements to build wheel: finished with status 'error'
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [2 lines of output]
ERROR: Cannot find Cythonized file rados.c
WARNING: Cython is not installed.
pip 25.3 removed the --no-use-pep517 option and no longer calls
setup.py bdist_wheel, enforcing PEP 517 build isolation by default.
Without pyproject.toml, pip cannot install Cython in the isolated
build environment, preventing the generation of .c files from .pyx
sources during the build.
This commit adds pyproject.toml to all four pybind modules (rados,
cephfs, rbd, rgw) declaring Cython>=0.29 as a build dependency. This
ensures Cython is available in pip 25.3's isolated build environment,
allowing the build to proceed successfully.
How it works:
ReadTheDocs builds pybind modules by running:
pip install -r admin/doc-pybind.txt
This file lists local directory paths:
src/pybind/rados
src/pybind/cephfs
src/pybind/rbd
src/pybind/rgw
When pip processes each local directory, it automatically:
1. Looks for pyproject.toml in that directory (per PEP 517/518)
2. Reads the [build-system] section
3. Installs the dependencies listed in "requires" into an isolated
build environment
4. Invokes the build backend (setup.py via setuptools.build_meta)
With pyproject.toml present, Cython is now installed in step 3,
making it available when setup.py runs in step 4.
References:
- pip 25.3 Changelog: https://pip.pypa.io/en/stable/news/
- pip Issue: pypa/pip#6334
- PEP 517 (Build System Interface): https://peps.python.org/pep-0517/
- PEP 518 (Build System Requirements): https://peps.python.org/pep-0518/
Signed-off-by: Kefu Chai <[email protected]>
tchaikov
force-pushed
the
wip-pybind-build-failure
branch
from
January 22, 2026 06:13
bbb5b91 to
7dd00ca
Compare
idryomov
approved these changes
Jan 22, 2026
idryomov
left a comment
Contributor
There was a problem hiding this comment.
Ack from the RBD perspective
Contributor
Member
|
jenkins test api |
This comment was marked as resolved.
This comment was marked as resolved.
tchaikov
marked this pull request as draft
January 28, 2026 04:36
tchaikov
marked this pull request as ready for review
January 29, 2026 23:00
Contributor
Author
Contributor
|
Tracker issue for this was in https://tracker.ceph.com/issues/73645 |
4 of 14 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.
ReadTheDocs builds started failing when pip 25.3 began enforcing PEP 517 build isolation. Under build isolation, pip creates a clean temporary environment to build packages. Without pyproject.toml declaring build dependencies, Cython is not available in this isolated environment, causing builds to fail.
pip 25.3 removed the --no-use-pep517 option and no longer calls setup.py bdist_wheel, enforcing PEP 517 build isolation by default. Without pyproject.toml, pip cannot install Cython in the isolated build environment, preventing the generation of .c files from .pyx sources during the build.
This commit adds pyproject.toml to all four pybind modules (rados, cephfs, rbd, rgw) declaring Cython as a build dependency. This ensures Cython is available in pip 25.3's isolated build environment, allowing the build to proceed successfully.
How it works:
ReadTheDocs builds pybind modules by running:
pip install -r admin/doc-pybind.txt
This file lists local directory paths:
src/pybind/rados
src/pybind/cephfs
src/pybind/rbd
src/pybind/rgw
When pip processes each local directory, it automatically:
With pyproject.toml present, Cython is now installed in step 3,
making it available when setup.py runs in step 4.
References:
setup.py bdist_wheelmechanism for building projects pypa/pip#6334Fixes: ReadTheDocs build failures with pip 25.3+
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.