Skip to content

Commit da21c29

Browse files
authored
refactor(rattler): enable strict channel priority for builds (#5035)
This PR enables strict channel priority for building conda packages with `rattler-build`. xref rapidsai/build-planning#84 Authors: - Gil Forsyth (https://github.com/gforsyth) Approvers: - James Lamb (https://github.com/jameslamb) URL: #5035
1 parent f7deb65 commit da21c29

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

Diff for: ci/build_cpp.sh

+2-4
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/libcugraph \
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

Diff for: ci/build_python.sh

+4-13
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rapids-generate-version > ./VERSION
1818
RAPIDS_PACKAGE_VERSION=$(head -1 ./VERSION)
1919
export RAPIDS_PACKAGE_VERSION
2020

21-
# populates `RATTLER_CHANNELS` array
21+
# populates `RATTLER_CHANNELS` array and `RATTLER_ARGS` array
2222
source rapids-rattler-channel-string
2323

2424
rapids-logger "Prepending channel ${CPP_CHANNEL} to RATTLER_CHANNELS"
@@ -33,10 +33,7 @@ rapids-logger "Building pylibcugraph"
3333
# more info is available at
3434
# https://rattler.build/latest/tips_and_tricks/#using-sccache-or-ccache-with-rattler-build
3535
rattler-build build --recipe conda/recipes/pylibcugraph \
36-
--experimental \
37-
--no-build-id \
38-
--channel-priority disabled \
39-
--output-dir "$RAPIDS_CONDA_BLD_OUTPUT_DIR" \
36+
"${RATTLER_ARGS[@]}" \
4037
"${RATTLER_CHANNELS[@]}"
4138

4239
sccache --show-adv-stats
@@ -45,10 +42,7 @@ sccache --zero-stats
4542
rapids-logger "Building cugraph"
4643

4744
rattler-build build --recipe conda/recipes/cugraph \
48-
--experimental \
49-
--no-build-id \
50-
--channel-priority disabled \
51-
--output-dir "$RAPIDS_CONDA_BLD_OUTPUT_DIR" \
45+
"${RATTLER_ARGS[@]}" \
5246
"${RATTLER_CHANNELS[@]}"
5347

5448
sccache --show-adv-stats
@@ -61,10 +55,7 @@ sccache --show-adv-stats
6155
rapids-logger "Building cugraph-service"
6256

6357
rattler-build build --recipe conda/recipes/cugraph-service \
64-
--experimental \
65-
--no-build-id \
66-
--channel-priority disabled \
67-
--output-dir "$RAPIDS_CONDA_BLD_OUTPUT_DIR" \
58+
"${RATTLER_ARGS[@]}" \
6859
"${RATTLER_CHANNELS[@]}"
6960

7061
# remove build_cache directory to avoid uploading the entire source tree

0 commit comments

Comments
 (0)