Skip to content

Commit

Permalink
ffi: build only lib and not bins in python commands
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <[email protected]>
  • Loading branch information
yukibtc committed Nov 27, 2024
1 parent cd0e1f6 commit c59de30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bindings/nostr-sdk-ffi/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ swift:
python:
rm -rf python/dist
pip install -r python/requirements.txt
cargo build --release
cargo build --lib --release
cargo run --bin uniffi-bindgen generate --library ../../target/release/libnostr_sdk_ffi.so --language python --no-format -o python/src/nostr-sdk/
cp ../../target/release/libnostr_sdk_ffi.so python/src/nostr-sdk/
cd python && python setup.py bdist_wheel
Expand All @@ -93,7 +93,7 @@ python:
python:
rm -rf python/dist
pip install -r python/requirements.txt
cargo build --release
cargo build --lib --release
cargo run --bin uniffi-bindgen generate --library ../../target/release/libnostr_sdk_ffi.dylib --language python --no-format -o python/src/nostr-sdk/
cp ../../target/release/libnostr_sdk_ffi.dylib python/src/nostr-sdk/
cd python && python setup.py bdist_wheel
Expand All @@ -102,7 +102,7 @@ python:
[windows]
python:
pip install -r python\requirements.txt
cargo build --release
cargo build --lib --release
cargo run --bin uniffi-bindgen generate --library ..\..\target\release\nostr_sdk_ffi.dll --language python --no-format -o python\src\nostr-sdk\
copy ..\..\target\release\nostr_sdk_ffi.dll python\src\nostr-sdk
del /F /Q python\dist\* 2>nul || exit /b 0
Expand Down

0 comments on commit c59de30

Please sign in to comment.