Skip to content

Commit

Permalink
[Nova] Do not install conda-build for wheels (#4774)
Browse files Browse the repository at this point in the history
And default to python 3.10 as conda builds create their own environment
anyway
  • Loading branch information
malfet committed Dec 1, 2023
1 parent 0e96b50 commit d71c651
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/actions/setup-binary-builds/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,23 @@ runs:
run: |
set -euxo pipefail
CONDA_ENV="${RUNNER_TEMP}/conda_environment_${GITHUB_RUN_ID}"
if [[ "${PACKAGE_TYPE:-}" == "conda" ]]; then
# For conda package host python version is irrelevant
export PYTHON_VERSION=3.9
export CONDA_BUILD_EXTRA="conda=23.10.0 conda-build=3.27.0"
else
# For wheel builds we don't need neither conda nor conda-build
export CONDA_BUILD_EXTRA=""
fi
conda create \
--yes --quiet \
--prefix "${CONDA_ENV}" \
"python=${PYTHON_VERSION}" \
cmake=3.22 \
conda-build=3.27.0 \
conda=23.10.0 \
ninja=1.10 \
pkg-config=0.29 \
${CONDA_BUILD_EXTRA} \
wheel=0.37
echo "CONDA_ENV=${CONDA_ENV}" >> "${GITHUB_ENV}"
Expand Down

0 comments on commit d71c651

Please sign in to comment.