-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use `pytest` for running tests. Remove redundant make command in Dockerfile. Update wheel logic. Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
- Loading branch information
Showing
3 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ COPY . /io | |
|
||
WORKDIR /io | ||
|
||
RUN make clips_source | ||
RUN make install-clips | ||
|
||
CMD "./manylinux/build-wheels.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
#!/bin/bash | ||
|
||
PLATFORM=manylinux2014_x86_64 | ||
|
||
set -e -x | ||
|
||
# Compile wheels | ||
for PYBIN in /opt/python/*/bin; do | ||
"${PYBIN}/pip" install cffi nose setuptools | ||
"${PYBIN}/pip" wheel /io/ -w wheelhouse/ | ||
"${PYBIN}/pip" install cffi pytest setuptools | ||
"${PYBIN}/pip" wheel /io/ --no-deps -w wheelhouse/ | ||
done | ||
|
||
# Bundle external shared libraries into the wheels | ||
for whl in wheelhouse/*.whl; do | ||
auditwheel repair "$whl" --plat manylinux2014_x86_64 -w /io/wheelhouse/ | ||
if ! auditwheel show "$whl"; then | ||
echo "Skipping non-platform wheel $whl" | ||
else | ||
auditwheel repair "$whl" --plat "$PLATFORM" -w /io/wheelhouse/ | ||
fi | ||
done | ||
|
||
# Install packages and test | ||
for PYBIN in /opt/python/*/bin; do | ||
"${PYBIN}/pip" install clipspy --no-index -f /io/wheelhouse | ||
(cd "$HOME"; "${PYBIN}/nosetests" -v /io/test) | ||
(cd "$HOME"; "${PYBIN}/pytest" -v /io/test) | ||
done |