Skip to content

Commit 8e39e31

Browse files
committed
travis-ci: use delocate on macOS
1 parent f9a0ab2 commit 8e39e31

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,21 @@ matrix:
4747
install:
4848
- set -e
4949
- pip3 install -r requirements.txt -r requirements-dev.txt
50-
- pip3 install auditwheel
50+
- if [[ "${BUILD_TARGET}" = "linux" ]]; then
51+
pip3 install auditwheel;
52+
fi
53+
- if [[ "${BUILD_TARGET}" = "macos" ]]; then
54+
pip3 install delocate;
55+
fi
5156
script:
5257
- set -e
5358
- $PYTHON_BIN setup.py bdist_wheel
5459
- if [[ "${BUILD_TARGET}" = "linux" ]]; then
5560
auditwheel repair dist/*.whl;
5661
fi
62+
- if [[ "${BUILD_TARGET}" = "macos" ]]; then
63+
delocate-wheel -w wheelhouse -v dist/*.whl;
64+
fi
5765
- if [[ "${BUILD_TARGET}" = "windows" ]]; then
5866
mkdir wheelhouse;
5967
ls dist/*any.whl | sed -e 'p;s/any/win32/' | xargs -n2 cp;

0 commit comments

Comments
 (0)