]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind: write Tempita-processed pyx to the build directory 70168/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Mon, 13 Jul 2026 18:56:23 +0000 (11:56 -0700)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Tue, 14 Jul 2026 05:34:33 +0000 (22:34 -0700)
commitd1ed18a7205481d5f1f5c24f2d8c8e937a4eec83
tree0707911c4545b35ab679615f251eac2bbb7daff1
parentbf1010e8bbda5953ebe6295c38ab47459a6d8ce1
pybind: write Tempita-processed pyx to the build directory

distutils_add_cython_module() runs setup.py with WORKING_DIRECTORY set
to the source directory, so every build leaks
{rados,cephfs,rbd,rgw}_processed.pyx into the source tree as untracked
files. Write the file to CYTHON_BUILD_DIR (already exported by that
CMake function) when set, keeping the cwd fallback for standalone
invocations.

The .pyx no longer sits next to the bindings' .pxd files, so add each
binding's source directory to include_path. Drop the build_dir
argument: it has no effect on absolute source paths.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
src/pybind/cephfs/setup.py
src/pybind/rados/setup.py
src/pybind/rbd/setup.py
src/pybind/rgw/setup.py