Skip to content

Commit dffe770

Browse files
committed
ci: call rattler-build in build_python.sh
1 parent 1660f13 commit dffe770

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

ci/build_python.sh

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,28 @@
33

44
set -euo pipefail
55

6-
rapids-configure-conda-channels
7-
86
source rapids-date-string
97

108
rapids-print-env
119

1210
rapids-generate-version > ./VERSION
11+
RAPIDS_PACKAGE_VERSION=$(head -1 ./VERSION)
12+
export RAPIDS_PACKAGE_VERSION
13+
14+
# populates `RATTLER_CHANNELS` array
15+
source rapids-rattler-channel-string
16+
17+
rapids-logger "Building ucx-py"
1318

14-
rapids-logger "Begin py build"
15-
conda config --set path_conflict prevent
19+
# Need `--experimental` flag to use `load_from_file` and `git.head_rev`
20+
rattler-build build --recipe conda/recipes/ucx-py \
21+
--experimental \
22+
--channel-priority disabled \
23+
--output-dir "$RAPIDS_CONDA_BLD_OUTPUT_DIR" \
24+
"${RATTLER_CHANNELS[@]}"
1625

17-
RAPIDS_PACKAGE_VERSION=$(head -1 ./VERSION) rapids-conda-retry build \
18-
conda/recipes/ucx-py
26+
# remove build_cache directory to avoid uploading the entire source tree
27+
# tracked in https://github.com/prefix-dev/rattler-build/issues/1424
28+
rm -rf "$RAPIDS_CONDA_BLD_OUTPUT_DIR"/build_cache
1929

2030
rapids-upload-conda-to-s3 python

0 commit comments

Comments
 (0)