diff --git a/build.sh b/build.sh index 769600b10f..fc4b1d6df1 100755 --- a/build.sh +++ b/build.sh @@ -117,6 +117,11 @@ if hasArg -n; then INSTALL_TARGET="" fi +# Append `-DFIND_KVIKIO_CPP=ON` to EXTRA_CMAKE_ARGS unless a user specified the option. +if [[ "${EXTRA_CMAKE_ARGS}" != *"DFIND_KVIKIO_CPP"* ]]; then + EXTRA_CMAKE_ARGS="${EXTRA_CMAKE_ARGS} -DFIND_KVIKIO_CPP=ON" +fi + # If clean given, run it prior to any other steps if hasArg clean; then # If the dirs to clean are mounted dirs in a container, the diff --git a/conda/recipes/kvikio/build.sh b/conda/recipes/kvikio/build.sh new file mode 100644 index 0000000000..462f06826b --- /dev/null +++ b/conda/recipes/kvikio/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# Copyright (c) 2018-2024, NVIDIA CORPORATION. + +./build.sh kvikio diff --git a/conda/recipes/kvikio/meta.yaml b/conda/recipes/kvikio/meta.yaml index a4d6ce165e..78e844aff4 100644 --- a/conda/recipes/kvikio/meta.yaml +++ b/conda/recipes/kvikio/meta.yaml @@ -32,9 +32,6 @@ build: - SCCACHE_S3_KEY_PREFIX=kvikio-linux64 # [linux64] - SCCACHE_S3_USE_SSL - SCCACHE_S3_NO_CREDENTIALS - script: - - cd python - - python -m pip install . -vv ignore_run_exports_from: {% if cuda_major == "11" %} - {{ compiler('cuda11') }}