diff --git a/.github/workflows/build-all-rapids-repos.yml b/.github/workflows/build-all-rapids-repos.yml index e426d7429..7cf144686 100644 --- a/.github/workflows/build-all-rapids-repos.yml +++ b/.github/workflows/build-all-rapids-repos.yml @@ -48,6 +48,10 @@ jobs: sccache -z; sccache --show-adv-stats; clone-all -j$(nproc) -v -q --clone-upstream --single-branch --shallow-submodules; + # The latest Cython from the master branch supports limited API compilation + export NO_CYTHON_COMPILE=true + python -m pip install git+https://github.com/cython/cython.git@master + build-all \ -Wno-dev \ -j$(nproc --ignore=1) \ diff --git a/features/src/rapids-build-utils/opt/rapids-build-utils/manifest.yaml b/features/src/rapids-build-utils/opt/rapids-build-utils/manifest.yaml index 567823ace..6d6d4dcc3 100755 --- a/features/src/rapids-build-utils/opt/rapids-build-utils/manifest.yaml +++ b/features/src/rapids-build-utils/opt/rapids-build-utils/manifest.yaml @@ -24,7 +24,7 @@ repos: - name: rmm sub_dir: python/rmm depends: [rmm] - args: {install: *rapids_build_backend_args} + args: {install: *rapids_build_backend_args, cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'"} - name: ucxx path: ucxx @@ -42,6 +42,7 @@ repos: - name: libucxx sub_dir: python/libucxx args: {install: *rapids_build_backend_args} + # ucxx explicitly uses functions not in the limited API, so not attempting to enable limited API builds here for now - name: ucxx sub_dir: python/ucxx depends: [ucxx, ucxx-python] @@ -65,7 +66,7 @@ repos: - name: kvikio sub_dir: python/kvikio depends: [kvikio] - args: {install: *rapids_build_backend_args} + args: {install: *rapids_build_backend_args, cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'"} - name: cudf path: cudf @@ -85,11 +86,11 @@ repos: - name: pylibcudf sub_dir: python/pylibcudf depends: [cudf] - args: {install: *rapids_build_backend_args} + args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args} - name: cudf sub_dir: python/cudf depends: [cudf] - args: {install: *rapids_build_backend_args} + args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args} - name: dask-cudf sub_dir: python/dask_cudf args: {install: *rapids_build_backend_args} @@ -135,11 +136,11 @@ repos: - name: pylibraft sub_dir: python/pylibraft depends: [raft] - args: {install: *rapids_build_backend_args} + args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args} - name: raft-dask sub_dir: python/raft-dask depends: [ucxx, raft] - args: {install: *rapids_build_backend_args} + args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args} - name: cuvs path: cuvs @@ -159,7 +160,7 @@ repos: - name: cuvs sub_dir: python/cuvs depends: [cuvs] - args: {install: *rapids_build_backend_args} + args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args} - name: cumlprims_mg path: cumlprims_mg @@ -186,7 +187,7 @@ repos: - name: cuml sub_dir: python/cuml depends: [cuml] - args: {install: *rapids_build_backend_args} + args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args} - name: cugraph path: cugraph @@ -209,10 +210,11 @@ repos: - name: pylibcugraph sub_dir: python/pylibcugraph depends: [cugraph] - args: {install: *rapids_build_backend_args} + args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args} - name: cugraph sub_dir: python/cugraph depends: [cugraph] + args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args} args: {install: *rapids_build_backend_args} - name: cugraph-service-client sub_dir: python/cugraph-service/client