Skip to content

Commit ab5f697

Browse files
committed
scripts
1 parent 9d0142e commit ab5f697

3 files changed

Lines changed: 26 additions & 4 deletions

File tree

scripts/Dockerfile.build

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM quay.io/pypa/manylinux_2_24_x86_64
2+
3+
RUN apt-get update && \
4+
apt-get install -y libssl-dev; \
5+
mkdir -p /code
6+
7+
WORKDIR /code
8+
9+
CMD /code/scripts/incontainer-build.sh
10+
11+

scripts/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
git submodule update --init
6+
7+
docker build -f scripts/Dockerfile.build -t aerospike-wheel-builder:latest .
8+
9+
docker run -it -v $(pwd):/code aerospike-wheel-builder:latest /code/scripts/manylinuxbuild.sh

scripts/manylinuxbuild.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
#!/bin/bash
22

3+
set -e
4+
35
# Compile wheels
46
for PYBIN in /opt/python/*/bin; do
5-
"${PYBIN}/pip" wheel ./ -w /work/tempwheels
7+
"${PYBIN}/pip" wheel ./ -w /code/work/tempwheels
68
done
79

810
# Bundle external shared libraries into the wheels
9-
for whl in /work/tempwheels/*.whl; do
10-
auditwheel repair "$whl" --plat manylinux2010_x86_64 -w /work/wheels/
11+
for whl in /code/work/tempwheels/*.whl; do
12+
auditwheel repair "$whl" --plat manylinux_2_24_x86_64 -w /code/work/wheels/
1113
done
1214

1315
for PYBIN in /opt/python/*/bin/; do
14-
${PYBIN}/pip install aerospike -f /work/wheels/
16+
${PYBIN}/pip install aerospike -f /code/work/wheels/ --no-index
1517
${PYBIN}/python -c "import aerospike; print('Installed aerospike version{}'.format(aerospike.__version__))"
1618
done

0 commit comments

Comments
 (0)