Skip to content

Commit

Permalink
Add rapids-rattler-channel-string tool (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
gforsyth authored Feb 12, 2025
1 parent 5afa4c3 commit 44729ef
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tools/rapids-rattler-channel-string
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

RAPIDS_CHANNEL="rapidsai-nightly"
DASK_CHANNEL="dask/label/dev"

# Replace dev/nightly channels if build is a release build
if rapids-is-release-build; then
RAPIDS_CHANNEL="rapidsai"
DASK_CHANNEL=""
fi

channels=("$RAPIDS_CHANNEL" "$DASK_CHANNEL" "conda-forge" "nvidia")

_add_c_prefix() {
for channel in "${channels[@]}"; do
# Only echo out a channel if it is non-empty
if [[ $channel ]]; then
echo -n "-c $channel "
fi
done
}

rapids-logger "Using channels: ${channels[*]}"

RATTLER_CHANNELS=$(_add_c_prefix)
export RATTLER_CHANNELS

0 comments on commit 44729ef

Please sign in to comment.