Debian Codegraph @

docker/buildwheel.sh

raw
1 #!/bin/bash
2 DOCKER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3 source "$DOCKER_DIR/shared.env"
4
5 set -e -x
6
7 ARCH=`uname -p`
8 echo "arch=$ARCH"
9
10 ls /opt/python
11
12 for V in "${PYTHON_VERSIONS[@]}"; do
13 PYBIN=/opt/python/$V/bin
14 rm -rf build/ # Avoid lib build by narrow Python is used by wide python
15 $PYBIN/python -m build -w
16 done
17
18 cd dist
19 for whl in *.whl; do
20 auditwheel repair "$whl"
21 rm "$whl"
22 done