From a68c402245f4d9cfdc7c5d624d905d2317d7b037 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Tue, 17 Dec 2019 15:53:44 +0100 Subject: [PATCH] Build manylinux wheels. --- azure-pipelines.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 90006ff1..9143abc1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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' @@ -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'