Skip to content

Commit af02009

Browse files
authored
Update publish-wheels.yml to use native aarch64 Python
1 parent 9e1389c commit af02009

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/publish-wheels.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,15 @@ jobs:
5252
- name: Build + auditwheel
5353
run: |
5454
podman run --rm --platform linux/arm64 \
55-
-v /home/minds3t/miniforge3/envs/evocoder_env/.omnipkg/interpreters/cpython-3.7.9:/python37:ro \
5655
-v ${{ github.workspace }}:/io \
5756
quay.io/pypa/manylinux2014_aarch64:latest \
5857
/bin/bash -c "
59-
/python37/bin/python3 -m pip install build --quiet &&
58+
# python-build-standalone has no py3.7 aarch64 build.
59+
# manylinux2014_aarch64 ships a native aarch64 cp37 at a known path.
60+
PY=/opt/python/cp37-cp37m/bin/python3
61+
\$PY -m pip install build --quiet &&
6062
cd /io &&
61-
/python37/bin/python3 -m build --wheel --outdir /io/dist-raw/ &&
63+
\$PY -m build --wheel --outdir /io/dist-raw/ &&
6264
auditwheel repair /io/dist-raw/*.whl -w /io/dist/
6365
"
6466
@@ -106,13 +108,15 @@ jobs:
106108
- name: Build + auditwheel
107109
run: |
108110
podman run --rm --platform linux/arm64 \
109-
-v /home/minds3t/miniforge3/envs/evocoder_env/.omnipkg/interpreters/cpython-3.7.9:/python37:ro \
110111
-v ${{ github.workspace }}:/io \
111112
quay.io/pypa/musllinux_1_2_aarch64:latest \
112113
/bin/bash -c "
113-
/python37/bin/python3 -m pip install build --quiet &&
114+
# python-build-standalone has no py3.7 aarch64 build.
115+
# musllinux_1_2_aarch64 ships a native aarch64 cp37 at a known path.
116+
PY=/opt/python/cp37-cp37m/bin/python3
117+
\$PY -m pip install build --quiet &&
114118
cd /io &&
115-
/python37/bin/python3 -m build --wheel --outdir /io/dist-raw/ &&
119+
\$PY -m build --wheel --outdir /io/dist-raw/ &&
116120
auditwheel repair /io/dist-raw/*.whl -w /io/dist/
117121
"
118122

0 commit comments

Comments
 (0)