From 25990ef1fe95e4539713e2ee6afb99a6c9b74ac7 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Fri, 1 Nov 2024 08:38:20 +0000 Subject: [PATCH] Update Raspberry Pi build script --- .../cibuildwheel/make-raspberry-pi-aarch64.sh | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/auxiliary/cibuildwheel/make-raspberry-pi-aarch64.sh b/auxiliary/cibuildwheel/make-raspberry-pi-aarch64.sh index 8978034a..853a955e 100755 --- a/auxiliary/cibuildwheel/make-raspberry-pi-aarch64.sh +++ b/auxiliary/cibuildwheel/make-raspberry-pi-aarch64.sh @@ -11,24 +11,17 @@ # Fail if any subcommands fail set -e -pyenv install 3.8.17 3.9.17 3.10.12 3.11.4 +# Install dependencies to build a fully-fledged Python install +sudo apt-get install build-essential libffi-dev libreadline-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev -for VERSION in 3.8.17 3.9.17 3.10.12 3.11.4 +VERSIONS="3.8.20 3.9.20 3.10.15 3.11.10 3.12.7 3.13.0" + +pyenv install --skip-existing $VERSIONS + +for VERSION in $VERSIONS do pyenv local $VERSION python3 --version pip3 install build python3 -m build --wheel done - -echo "Renaming to _armv7l..." -SIGNALFLOW_VERSION=$(cat setup.py | grep version= | tr -dc '0-9.') -echo "SignalFlow version = $SIGNALFLOW_VERSION" -cd dist -mkdir $SIGNALFLOW_VERSION -for FILE in signalflow-${SIGNALFLOW_VERSION}*_aarch64.whl -do - OUTPUT_FILE=$SIGNALFLOW_VERSION/$(echo $FILE | sed 's/aarch64/armv7l/') - mv $FILE $OUTPUT_FILE - echo "Created product: dist/$OUTPUT_FILE" -done