]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind: respect CYTHON_BUILD_DIR for all Python bindings wip-pr-67045-kefu-6
authorKefu Chai <k.chai@proxmox.com>
Wed, 28 Jan 2026 02:43:50 +0000 (10:43 +0800)
committerKefu Chai <k.chai@proxmox.com>
Wed, 28 Jan 2026 03:03:33 +0000 (11:03 +0800)
commite57e9c52a43913ea082203c0371df3fe2fccbdb7
treeaafcd16d2a2b7e70e44c64795e457e856df0199d
parentfc36bd8ab6f7cd7bf16c75ab693547763bf39c3f
pybind: respect CYTHON_BUILD_DIR for all Python bindings

Allow the *_processed.pyx files to be generated in a build directory
specified by the CYTHON_BUILD_DIR environment variable, instead of
always writing to the current working directory or source directory.

Changes for all bindings (rados, cephfs, rbd, rgw):
- Add cython_build_dir variable from environment
- Refactor Tempita processing to write output to build_dir
- Use os.path.relpath for the source path
- Pass cython_build_dir to cythonize() function

This ensures consistent behavior across all Python bindings and allows
for cleaner separation of source and build artifacts.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/pybind/cephfs/setup.py
src/pybind/rados/setup.py
src/pybind/rbd/setup.py
src/pybind/rgw/setup.py