forked from bmoscon/cryptofeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-wheels.sh
executable file
·40 lines (30 loc) · 894 Bytes
/
build-wheels.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
#set -e -x
py_vers=("/opt/python/cp310-cp310/bin" "/opt/python/cp38-cp38/bin" "/opt/python/cp39-cp39/bin")
#for PY in "${py_vers[@]}"; do
# "${PY}/pip" wheel /io/ -w wheelhouse/
#done
#for whl in wheelhouse/*.whl; do
# auditwheel repair "$whl" -w /io/wheelhouse/
#done
set -e -u -x
PLAT=manylinux_2_24_x86_64
function repair_wheel {
wheel="$1"
if ! auditwheel show "$wheel"; then
echo "Skipping non-platform wheel $wheel"
else
auditwheel repair "$wheel" --plat "$PLAT" -w /io/wheelhouse/
fi
}
# Install a system package required by our library
#yum install -y gcc g++ buildtools
# Compile wheels
for PYBIN in "${py_vers[@]}"; do
"${PYBIN}/pip" install cython
"${PYBIN}/pip" wheel /io/ --no-deps -w wheelhouse/
done
# Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
repair_wheel "$whl"
done