Skip to content

Commit 9e44641

Browse files
committedFeb 18, 2021
Fixes to work with dockcross instead
1 parent e075949 commit 9e44641

File tree

3 files changed

+28
-34
lines changed

3 files changed

+28
-34
lines changed
 

‎scripts/build-wheels.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
set -e -x
3+
4+
# Install a system package required by our library
5+
sudo yum install -y atlas-devel
6+
7+
# Compile wheels
8+
for PYBIN in /opt/python/*/bin; do
9+
# sudo ${PYBIN}/pip install -r ./dev-requirements.txt
10+
LDSHARED="$CC -shared" ${PYBIN}/pip wheel . -w wheelhouse/
11+
done
12+
13+
# Bundle external shared libraries into the wheels
14+
for whl in wheelhouse/*.whl; do
15+
auditwheel repair $whl -w ./wheelhouse/
16+
done
17+
18+
# Install packages and test
19+
for PYBIN in /opt/python/*/bin/; do
20+
sudo ${PYBIN}/pip install python-manylinux-demo --no-index -f ./wheelhouse
21+
(cd $HOME; ${PYBIN}/nosetests pymanylinuxdemo)
22+
done

‎scripts/run-build.sh

+6-31
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,7 @@
11
#!/bin/bash
2-
set -e -u -x
3-
4-
function repair_wheel {
5-
wheel="$1"
6-
if ! auditwheel show "$wheel"; then
7-
echo "Skipping non-platform wheel $wheel"
8-
else
9-
auditwheel repair "$wheel" --plat "$PLAT" -w /io/wheelhouse/
10-
fi
11-
}
12-
13-
14-
# Install a system package required by our library
15-
yum install -y atlas-devel
16-
17-
# Compile wheels
18-
for PYBIN in /opt/python/*/bin; do
19-
# "${PYBIN}/pip" install -r /io/dev-requirements.txt
20-
"${PYBIN}/pip" wheel /io/ --no-deps -w wheelhouse/
21-
done
22-
23-
# Bundle external shared libraries into the wheels
24-
for whl in wheelhouse/*.whl; do
25-
repair_wheel "$whl"
26-
done
27-
28-
# Install packages and test
29-
for PYBIN in /opt/python/*/bin/; do
30-
"${PYBIN}/pip" install pyroomacoustics --no-index -f /io/wheelhouse
31-
(cd "/io"; "${PYBIN}/nosetests" pyroomacoustics)
32-
done
2+
export DOCKER_IMAGE=dockcross/manylinux2014-aarch64
3+
docker pull $DOCKER_IMAGE
4+
docker run --rm $DOCKER_IMAGE > ./dockcross
5+
chmod +x ./dockcross
6+
./dockcross scripts/build-wheels.sh
7+
ls wheelhouse/

‎scripts/run-docker-manylinux-build.sh

-3
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.