msgpack-python/docker/buildwheel.sh

23 lines
431 B
Bash
Raw Normal View History

2016-07-30 11:35:26 +09:00
#!/bin/bash
2019-11-22 19:58:55 -08:00
DOCKER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$DOCKER_DIR/shared.env"
2016-07-30 11:35:26 +09:00
set -e -x
ARCH=`uname -p`
echo "arch=$ARCH"
ls /opt/python
2019-11-22 19:58:55 -08:00
for V in "${PYTHON_VERSIONS[@]}"; do
2016-07-30 11:35:26 +09:00
PYBIN=/opt/python/$V/bin
rm -rf build/ # Avoid lib build by narrow Python is used by wide python
$PYBIN/python -m build -w
done
cd dist
for whl in *.whl; do
auditwheel repair "$whl"
rm "$whl"
2016-07-30 11:35:26 +09:00
done