Skip to content

Commit

Permalink
Build manylinux wheels.
Browse files Browse the repository at this point in the history
  • Loading branch information
anntzer committed Dec 17, 2019
1 parent bed2943 commit a68c402
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ steps:

- bash: |
pip install --upgrade pip setuptools wheel &&
python setup.py bdist_wheel &&
pip install -ve . &&
pip install pytest pytest-cov
displayName: 'Build & install'
Expand All @@ -76,6 +75,23 @@ steps:
esac
displayName: 'Upload to codecov.io'

- bash: |
git clean -xdf &&
case "$(python -c 'import sys; print(sys.platform)')" in
linux)
PV="${PYTHONVERSION/./}" &&
ABI="$(python -c "import sys; print(sys.abiflags)")" &&
docker run --volume="$(pwd)":/io:Z --workdir=/io quay.io/pypa/manylinux1_x86_64 \
/opt/python/cp"$PV"-cp"$PV$ABI"/bin/python setup.py bdist_wheel --verbose &&
docker run --volume="$(pwd)":/io:Z --workdir=/io quay.io/pypa/manylinux1_x86_64 \
auditwheel --verbose repair --wheel-dir=/io/dist /io/dist/$(ls dist)
;;
*)
python setup.py bdist_wheel
;;
esac
displayName: 'Build wheels'

- bash: |
cp dist/*.whl "$BUILD_ARTIFACTSTAGINGDIRECTORY"
displayName: 'Copy files'
Expand Down

0 comments on commit a68c402

Please sign in to comment.