Skip to content

Commit a54de5f

Browse files
committed
Adds files for arm build from pypi
1 parent 6f780fe commit a54de5f

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

scripts/build-wheels-pypi.sh

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/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 python-manylinux-demo --no-index -f /io/wheelhouse
31+
(cd "$HOME"; "${PYBIN}/nosetests" pymanylinuxdemo)
32+
done

scripts/run-build-native.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/bash
2+
DOCKER_IMAGE=quay.io/pypa/manylinux2014_x86_64
3+
PLAT=manylinux2014_x86_64
4+
docker pull $DOCKER_IMAGE
5+
docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/scripts/build-wheels-pypi.sh
6+
ls wheelhouse/

0 commit comments

Comments
 (0)