Skip to content

Commit 6a18b85

Browse files
author
Omer Katz
authored
Merge pull request #164 from odidev/odidev_librabbitmq
Add linux aarch64 wheel build support
2 parents 7cd9045 + 9085020 commit 6a18b85

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Makefile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RABBIT_DIST=librabbitmq
55
# Distribuition tools
66
PYTHON=python
77

8-
all: build
8+
all: build manylinux2014
99

1010
add-submodules:
1111
-git submodule add -b v0.8.0 https://github.com/alanxz/rabbitmq-c.git
@@ -57,8 +57,16 @@ $(RABBIT_TARGET):
5757

5858
dist: rabbitmq-c $(RABBIT_TARGET)
5959

60-
manylinux1: dist
61-
docker run --rm -v `pwd`:/workspace:z quay.io/pypa/manylinux1_x86_64 /workspace/build-manylinux1-wheels.sh
60+
manylinux2014: manylinux2014_x86_64 manylinux2014_aarch64
61+
62+
manylinux2014_x86_64: dist
63+
docker run --rm -v `pwd`:/workspace:z quay.io/pypa/manylinux2014_x86_64 /workspace/build-manylinux1-wheels.sh
64+
65+
qemu-user-static:
66+
docker run --rm --privileged hypriot/qemu-register
67+
68+
manylinux2014_aarch64: qemu-user-static
69+
docker run --rm -v `pwd`:/workspace:z quay.io/pypa/manylinux2014_aarch64 /workspace/build-manylinux1-wheels.sh
6270

6371
rebuild:
6472
$(PYTHON) setup.py build

build-manylinux1-wheels.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e -x
66
yum install -y cmake openssl-devel gcc automake
77

88
# Compile wheels
9-
for PYBIN in /opt/python/*/bin; do
9+
for PYBIN in /opt/python/cp*/bin; do
1010
# Ensure a fresh build of rabbitmq-c.
1111
(cd /workspace && PATH="${PYBIN}:${PATH}" make clean)
1212
(cd /workspace && "${PYBIN}"/python setup.py install)
@@ -23,7 +23,7 @@ for whl in wheelhouse/*linux*.whl; do
2323
done
2424

2525
# Install packages and test
26-
for PYBIN in /opt/python/*/bin/; do
26+
for PYBIN in /opt/python/cp*/bin/; do
2727
PYVER=$(echo "${PYBIN}" | cut -d'/' -f 4)
2828

2929
# amqp 5.0.0a1 and vine 5.0.0a1 breaks python2

0 commit comments

Comments
 (0)