Skip to content

Commit 0674335

Browse files
committed
move python install step
1 parent 8dcd8d9 commit 0674335

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.github/workflows/conda-python-build.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,19 @@ jobs:
131131
# Is update really needed?
132132
rapids-mamba-retry update --all -y -n base
133133
conda install -y conda-build
134+
- name: Install python
135+
env:
136+
PYTHON_VERSION: ${{ matrix.PY_VER }}
137+
run: |
138+
PYTHON_MAJOR_VERSION=${PYTHON_VERSION%%.*}
139+
PYTHON_MINOR_VERSION=${PYTHON_VERSION#*.}
140+
PYTHON_UPPER_BOUND="${PYTHON_MAJOR_VERSION}.$((PYTHON_MINOR_VERSION+1)).0a0"
141+
if [[ "${PYTHON_MINOR_VERSION}" -gt 12 ]]; then
142+
PYTHON_ABI_TAG="cp${PYTHON_MAJOR_VERSION}${PYTHON_MINOR_VERSION}"
143+
else
144+
PYTHON_ABI_TAG="cpython"
145+
fi
146+
rapids-mamba-retry install -y -n base "python>=${PYTHON_VERSION},<${PYTHON_UPPER_BOUND}=*_${PYTHON_ABI_TAG}"
134147
- name: Standardize repository information
135148
run: |
136149
echo "RAPIDS_REPOSITORY=${{ inputs.repo || github.repository }}" >> "${GITHUB_ENV}"
@@ -152,7 +165,6 @@ jobs:
152165
run: ${{ inputs.script }}
153166
env:
154167
GH_TOKEN: ${{ github.token }}
155-
PYTHON_VERSION: ${{ matrix.PY_VER }}
156168
- name: Upload conda repo
157169
if: ${{ !cancelled() }}
158170
uses: actions/upload-artifact@v7

ci/build_conda_python.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@
44

55
set -euo pipefail
66

7-
# install expected Python version
8-
PYTHON_MAJOR_VERSION=${PYTHON_VERSION%%.*}
9-
PYTHON_MINOR_VERSION=${PYTHON_VERSION#*.}
10-
PYTHON_UPPER_BOUND="${PYTHON_MAJOR_VERSION}.$((PYTHON_MINOR_VERSION+1)).0a0"
11-
if [[ "${PYTHON_MINOR_VERSION}" -gt 12 ]]; then
12-
PYTHON_ABI_TAG="cp${PYTHON_MAJOR_VERSION}${PYTHON_MINOR_VERSION}"
13-
else
14-
PYTHON_ABI_TAG="cpython"
15-
fi
16-
rapids-mamba-retry install -y -n base "python>=${PYTHON_VERSION},<${PYTHON_UPPER_BOUND}=*_${PYTHON_ABI_TAG}"
17-
187
source rapids-configure-sccache
198

209
source rapids-date-string

0 commit comments

Comments
 (0)