Skip to content

Commit

Permalink
Enhance build workflow: Install python3-devel in Docker build process…
Browse files Browse the repository at this point in the history
… for wheel compatibility
  • Loading branch information
royshil committed Nov 8, 2024
1 parent 5e47c0d commit daa54ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,15 @@ jobs:
run: |
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 bash -c "
cd /io &&
yum install -y python3-devel &&
PY_VERSION=${{ matrix.python-version == '3.11' && 'cp311-cp311' || 'cp312-cp312' }} &&
/opt/python/\${PY_VERSION}/bin/pip install numpy cmake wheel setuptools build &&
SIMPLER_WHISPER_ACCELERATION=${{ matrix.acceleration }} \
SIMPLER_WHISPER_PLATFORM=${{ matrix.platform }} \
SIMPLER_WHISPER_PYTHON_VERSION=${{ matrix.python-version }} \
/opt/python/\${PY_VERSION}/bin/python setup.py build_ext --inplace &&
/opt/python/\${PY_VERSION}/bin/python -m build --wheel &&
auditwheel repair dist/*.whl"
auditwheel repair dist/*.whl"
- name: Install built wheel Linux
if: matrix.os == 'ubuntu-latest'
Expand Down

0 comments on commit daa54ad

Please sign in to comment.