Skip to content

Commit

Permalink
Run auditwheel repair for manylinux2010 wheels (#312)
Browse files Browse the repository at this point in the history
* Add auditwheel repair steps for manylinux2010 wheels

* Fix wheel and auditwheel versions

* Fixes in twine upload (remove commands now unnecessary)
  • Loading branch information
rth committed Feb 20, 2020
1 parent 1152d55 commit d4e138c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .azure-ci/docker_scripts.sh
Expand Up @@ -46,5 +46,10 @@ pip uninstall -y giotto-tda
pip uninstall -y giotto-tda-nightly

# Build wheels
pip install wheel
pip install wheel==0.34.1 auditwheel==3.1.0
python setup.py bdist_wheel

# Repair wheels with auditwheel
auditwheel repair dist/*whl -w dist/
# remove wheels that are not manylinux2010
rm -rf dist/*-linux*.whl
5 changes: 2 additions & 3 deletions azure-pipelines.yml
Expand Up @@ -54,7 +54,7 @@ jobs:
- script: |
set -e
python -m pip install --upgrade pip
pip install dist/*.whl
pip install dist/*manylinux2010*.whl
displayName: 'Install the wheels'
- script: |
Expand Down Expand Up @@ -92,8 +92,7 @@ jobs:
- bash: |
set -e
pip install twine
for f in dist/*linux* ; do sudo mv "$f" "${f/linux/manylinux2010}"; done
twine upload -u giotto-learn -p $(pypi_psw) --skip-existing dist/*
twine upload -u giotto-learn -p $(pypi_psw) --skip-existing dist/*manylinux2010*.whl
condition: eq(variables['nightly_check'], 'true')
displayName: 'Upload nightly wheels to PyPI'
Expand Down

0 comments on commit d4e138c

Please sign in to comment.