Skip to content

Commit

Permalink
ffi(nostr): fix python command for macOS targets
Browse files Browse the repository at this point in the history
Use `.dylib` instead of `.a` library to generate python foreign-language bindings

Signed-off-by: Yuki Kishimoto <[email protected]>
  • Loading branch information
yukibtc committed Sep 27, 2024
1 parent 9632df6 commit 263833f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/nostr-ffi/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ python:
rm -rf bindings-python/dist
pip install -r bindings-python/requirements.txt
cargo build --release
cargo run -p uniffi-bindgen generate --library ../../target/release/libnostr_ffi.a --language python --no-format -o bindings-python/src/nostr/
cargo run -p uniffi-bindgen generate --library ../../target/release/libnostr_ffi.dylib --language python --no-format -o bindings-python/src/nostr/
cp ../../target/release/libnostr_ffi.dylib bindings-python/src/nostr/
cd bindings-python && python setup.py --verbose bdist_wheel
pip install ./bindings-python/dist/nostr_protocol*.whl --force-reinstall
Expand Down

0 comments on commit 263833f

Please sign in to comment.