11#! /bin/bash
2- # Copyright (c) 2023, NVIDIA CORPORATION.
2+ # Copyright (c) 2023-2025 , NVIDIA CORPORATION.
33
44# Exit script if any command fails
55set -euo pipefail
66
7- rapids-configure-conda-channels
8-
9- source rapids-configure-sccache
10-
117source rapids-date-string
128
13- # Print the Rapids environment for debugging purposes
149rapids-print-env
1510
1611# Generate version and replace any letter with a hyphen
1712version=$( rapids-generate-version)
1813node_version=$( echo " $version " | sed ' s/[a-zA-Z]/-\0/' | sed ' s/^-//' )
1914
15+ RAPIDS_PACKAGE_VERSION=$version
16+ export RAPIDS_PACKAGE_VERSION
17+
2018# Update the version field in package.json
2119rapids-logger " Updating version in package.json to $node_version "
2220jq -e --arg tag " $node_version " ' .version=$tag' package.json > package.json.tmp
@@ -25,7 +23,16 @@ mv package.json.tmp package.json
2523# Generate jupyterlab_nvdashboard/_version.py since hatch version hook isn't working with conda-build
2624echo " __version__ = '$version '" > jupyterlab_nvdashboard/_version.py
2725
28- # TODO: Remove `--no-test` flag once importing on a CPU
29- # node works correctly
30- rapids-logger " Building JupyterLab NVDashboard conda package"
31- RAPIDS_PACKAGE_VERSION=${version} rapids-conda-retry build --no-test conda/recipes/jupyterlab-nvdashboard
26+ # populates `RATTLER_CHANNELS` array and `RATTLER_ARGS` array
27+ source rapids-rattler-channel-string
28+
29+ rapids-logger " Building jupyterlab-nvdashboard"
30+
31+ rattler-build build --recipe conda/recipes/jupyterlab-nvdashboard \
32+ --test skip \
33+ " ${RATTLER_ARGS[@]} " \
34+ " ${RATTLER_CHANNELS[@]} "
35+
36+ # remove build_cache directory to avoid uploading the entire source tree
37+ # tracked in https://github.com/prefix-dev/rattler-build/issues/1424
38+ rm -rf " $RAPIDS_CONDA_BLD_OUTPUT_DIR " /build_cache
0 commit comments