From 431ab90f04e6ae6ed100dcd89d088e808489e3f9 Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Mon, 29 Apr 2024 15:23:11 -0400 Subject: [PATCH] fix: set rust compiler version before running cargo commands in python --- bdk-python/scripts/generate-linux.sh | 2 +- bdk-python/scripts/generate-macos-arm64.sh | 2 +- bdk-python/scripts/generate-macos-x86_64.sh | 2 +- bdk-python/scripts/generate-windows.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bdk-python/scripts/generate-linux.sh b/bdk-python/scripts/generate-linux.sh index 6193be6..5382e49 100644 --- a/bdk-python/scripts/generate-linux.sh +++ b/bdk-python/scripts/generate-linux.sh @@ -6,10 +6,10 @@ ${PYBIN}/pip install -r requirements.txt echo "Generating bdk.py..." cd ../bdk-ffi/ +rustup default 1.77.1 cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format echo "Generating native binaries..." -rustup default 1.77.1 cargo build --profile release-smaller echo "Copying linux libbdkffi.so..." diff --git a/bdk-python/scripts/generate-macos-arm64.sh b/bdk-python/scripts/generate-macos-arm64.sh index f8185d6..1d5ab4e 100644 --- a/bdk-python/scripts/generate-macos-arm64.sh +++ b/bdk-python/scripts/generate-macos-arm64.sh @@ -6,10 +6,10 @@ pip install -r requirements.txt echo "Generating bdk.py..." cd ../bdk-ffi/ +rustup default 1.77.1 cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format echo "Generating native binaries..." -rustup default 1.77.1 rustup target add aarch64-apple-darwin cargo build --profile release-smaller --target aarch64-apple-darwin diff --git a/bdk-python/scripts/generate-macos-x86_64.sh b/bdk-python/scripts/generate-macos-x86_64.sh index 20652fd..b8faafd 100644 --- a/bdk-python/scripts/generate-macos-x86_64.sh +++ b/bdk-python/scripts/generate-macos-x86_64.sh @@ -6,10 +6,10 @@ pip install -r requirements.txt echo "Generating bdk.py..." cd ../bdk-ffi/ +rustup default 1.77.1 cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format echo "Generating native binaries..." -rustup default 1.77.1 rustup target add x86_64-apple-darwin cargo build --profile release-smaller --target x86_64-apple-darwin diff --git a/bdk-python/scripts/generate-windows.sh b/bdk-python/scripts/generate-windows.sh index 5f45bbd..a86a77a 100644 --- a/bdk-python/scripts/generate-windows.sh +++ b/bdk-python/scripts/generate-windows.sh @@ -6,10 +6,10 @@ pip install -r requirements.txt echo "Generating bdk.py..." cd ../bdk-ffi/ +rustup default 1.77.1 cargo run --bin uniffi-bindgen generate src/bdk.udl --language python --out-dir ../bdk-python/src/bdkpython/ --no-format echo "Generating native binaries..." -rustup default 1.77.1 rustup target add x86_64-pc-windows-msvc cargo build --profile release-smaller --target x86_64-pc-windows-msvc