From 835078f36cf8c277bd251eb1f10266af654e76c3 Mon Sep 17 00:00:00 2001 From: Dante Gama Dessavre Date: Sat, 2 Mar 2024 16:28:45 -0600 Subject: [PATCH] FIX passing c api flag from python to build it in wheel builds --- conda/recipes/cuvs/meta.yaml | 1 + python/cuvs/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/conda/recipes/cuvs/meta.yaml b/conda/recipes/cuvs/meta.yaml index d7487bf98..435786b69 100644 --- a/conda/recipes/cuvs/meta.yaml +++ b/conda/recipes/cuvs/meta.yaml @@ -46,6 +46,7 @@ requirements: {% endif %} - cuda-version ={{ cuda_version }} - cython >=3.0.0 + - dlpack >= 0.8 - pylibraft {{ minor_version }} - libcuvs {{ version }} - python x.x diff --git a/python/cuvs/CMakeLists.txt b/python/cuvs/CMakeLists.txt index 9a43eba0c..c7b5e140b 100644 --- a/python/cuvs/CMakeLists.txt +++ b/python/cuvs/CMakeLists.txt @@ -57,6 +57,7 @@ endif() if(NOT cuvs_FOUND) set(BUILD_TESTS OFF) + set(BUILD_C_LIBRARY ON) set(CUDA_STATIC_RUNTIME ON) add_subdirectory(../../cpp cuvs-cpp EXCLUDE_FROM_ALL)