Skip to content

Commit 3e88915

Browse files
authored
Update publish-wheels.yml for Python version changes
1 parent 5d0d60e commit 3e88915

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/publish-wheels.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,16 @@ jobs:
8484

8585
- name: Build + auditwheel
8686
run: |
87+
# musllinux has no cp37 — oldest available is cp39
8788
podman run --rm \
88-
-v /home/minds3t/miniforge3/envs/evocoder_env/.omnipkg/interpreters/cpython-3.7.9:/python37:ro \
8989
-v ${{ github.workspace }}:/io \
9090
quay.io/pypa/musllinux_1_2_x86_64:latest \
9191
/bin/bash -c "
92-
/python37/bin/python3 -m pip install build --quiet &&
93-
cd /io &&
94-
/python37/bin/python3 -m build --wheel --outdir /io/dist-raw/ &&
92+
set -e
93+
PY=/opt/python/cp39-cp39/bin/python3
94+
\$PY -m pip install build --quiet
95+
cd /io
96+
\$PY -m build --wheel --outdir /io/dist-raw/
9597
auditwheel repair /io/dist-raw/*.whl -w /io/dist/
9698
"
9799
@@ -216,10 +218,15 @@ jobs:
216218
with:
217219
python-version: "3.11"
218220

219-
- name: Build noarch wheel + sdist
221+
- name: Build sdist
220222
run: |
221223
pip install build
222-
OMNIPKG_SKIP_C_EXT=1 python -m build --outdir dist/
224+
OMNIPKG_SKIP_C_EXT=1 python -m build --sdist --outdir dist/
225+
226+
- name: Build noarch wheel
227+
continue-on-error: true
228+
run: |
229+
OMNIPKG_SKIP_C_EXT=1 python -m build --wheel --outdir dist/
223230
224231
- uses: actions/upload-artifact@v4
225232
with:

0 commit comments

Comments
 (0)