mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00
Fix the pyo3 build for macos. (#324)
* Fix the pyo3 build for macos. * rustfmt fix.
This commit is contained in:
@ -1,5 +1,11 @@
|
||||
From the top level directory run:
|
||||
From the top level directory run the following for linux.
|
||||
```
|
||||
cargo build --release --package candle-pyo3 && cp -f ./target/release/libcandle.so candle.so
|
||||
cargo build --profile=release-with-debug --package candle-pyo3 && cp -f ./target/release-with-debug/libcandle.so candle.so
|
||||
PYTHONPATH=. python3 candle-pyo3/test.py
|
||||
```bash
|
||||
|
||||
Or for macOS users:
|
||||
```bash
|
||||
cargo build --profile=release-with-debug --package candle-pyo3 && cp -f ./target/release-with-debug/libcandle.dylib candle.so
|
||||
PYTHONPATH=. python3 candle-pyo3/test.py
|
||||
```
|
||||
|
Reference in New Issue
Block a user