Recommend using maturin. (#717)

This commit is contained in:
Laurent Mazare
2023-09-02 17:19:35 +02:00
committed by GitHub
parent ad796eb4be
commit 21109e1983
4 changed files with 5 additions and 48 deletions

View File

@ -1,11 +1,7 @@
From the top level directory run the following for linux.
```
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
From the `candle-pyo3` directory, enable a virtual env where you will want the
candle package to be installed then run.
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
maturin develop
python test.py
```