Skip to content

Commit

Permalink
Build packages using mambabuild (#846)
Browse files Browse the repository at this point in the history
Use `mambabuild` to build `conda` packages. This should speed up the builds and help to debug `conda` conflict issues

Authors:
  - Jordan Jacobelli (https://github.com/Ethyling)

Approvers:
  - https://github.com/jakirkham
  - AJ Schmidt (https://github.com/ajschmidt8)

URL: #846
  • Loading branch information
jjacobelli authored May 23, 2022
1 parent 10d83c9 commit 3c0e46b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions ci/cpu/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Copyright (c) 2019, NVIDIA CORPORATION.
# Copyright (c) 2019-2022, NVIDIA CORPORATION.
################################################################################
# dask-cuda cpu build
################################################################################
Expand Down Expand Up @@ -68,8 +68,11 @@ pip install git+https://github.com/dask/distributed.git@main
# BUILD - Package builds
################################################################################

# FIXME: Move boa install to gpuci/rapidsai
gpuci_mamba_retry install -c conda-forge boa

gpuci_logger "Build conda pkg for dask-cuda"
gpuci_conda_retry build conda/recipes/dask-cuda --python=${PYTHON}
gpuci_conda_retry mambabuild conda/recipes/dask-cuda --python=${PYTHON}

rm -rf dist/
python setup.py sdist bdist_wheel
Expand Down
5 changes: 4 additions & 1 deletion ci/gpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,13 @@ conda list --show-channel-urls
# BUILD - Build dask-cuda
################################################################################

# TODO: Move boa install to gpuci/rapidsai
gpuci_mamba_retry install boa

gpuci_logger "Build and install dask-cuda"
cd "${WORKSPACE}"
CONDA_BLD_DIR="${WORKSPACE}/.conda-bld"
gpuci_conda_retry build --croot "${CONDA_BLD_DIR}" conda/recipes/dask-cuda --python="${PYTHON}"
gpuci_conda_retry mambabuild --croot "${CONDA_BLD_DIR}" conda/recipes/dask-cuda --python="${PYTHON}"
gpuci_mamba_retry install -c "${CONDA_BLD_DIR}" dask-cuda

################################################################################
Expand Down

0 comments on commit 3c0e46b

Please sign in to comment.