Skip to content

Commit 064192a

Browse files
authored
chore(conda): enable strict channel priority for conda build (#674)
This PR enables strict channel priority for building conda packages with `conda-build`. xref rapidsai/build-planning#84 Authors: - Gil Forsyth (https://github.com/gforsyth) Approvers: - Mike Sarahan (https://github.com/msarahan) URL: #674
1 parent 0cff61d commit 064192a

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

‎ci/build_cpp.sh‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,14 @@ sccache --zero-stats
1818
RAPIDS_PACKAGE_VERSION=$(rapids-generate-version)
1919
export RAPIDS_PACKAGE_VERSION
2020

21+
# populates `RATTLER_CHANNELS` array and `RATTLER_ARGS` array
2122
source rapids-rattler-channel-string
2223

2324
# --no-build-id allows for caching with `sccache`
2425
# more info is available at
2526
# https://rattler.build/latest/tips_and_tricks/#using-sccache-or-ccache-with-rattler-build
2627
rattler-build build --recipe conda/recipes/libkvikio \
27-
--experimental \
28-
--no-build-id \
29-
--channel-priority disabled \
30-
--output-dir "$RAPIDS_CONDA_BLD_OUTPUT_DIR" \
28+
"${RATTLER_ARGS[@]}" \
3129
"${RATTLER_CHANNELS[@]}"
3230

3331
sccache --show-adv-stats

‎ci/build_python.sh‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
set -euo pipefail
55

6-
rapids-configure-conda-channels
7-
86
source rapids-configure-sccache
97

108
source rapids-date-string
@@ -20,7 +18,7 @@ export RAPIDS_PACKAGE_VERSION
2018

2119
CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)
2220

23-
# populates `RATTLER_CHANNELS` array
21+
# populates `RATTLER_CHANNELS` array and `RATTLER_ARGS` array
2422
source rapids-rattler-channel-string
2523

2624
rapids-logger "Prepending channel ${CPP_CHANNEL} to RATTLER_CHANNELS"
@@ -35,10 +33,7 @@ rapids-logger "Building kvikio"
3533
# more info is available at
3634
# https://rattler.build/latest/tips_and_tricks/#using-sccache-or-ccache-with-rattler-build
3735
rattler-build build --recipe conda/recipes/kvikio \
38-
--experimental \
39-
--no-build-id \
40-
--channel-priority disabled \
41-
--output-dir "$RAPIDS_CONDA_BLD_OUTPUT_DIR" \
36+
"${RATTLER_ARGS[@]}" \
4237
"${RATTLER_CHANNELS[@]}"
4338

4439
sccache --show-adv-stats

0 commit comments

Comments
 (0)