diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 1f5b8c2e..2ca53b23 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -24,7 +24,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: check - args: --no-default-features --workspace --exclude candle-kernels + args: --workspace test: name: Test Suite @@ -43,7 +43,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: test - args: --no-default-features --workspace --exclude candle-kernels + args: --workspace fmt: name: Rustfmt @@ -75,4 +75,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: clippy - args: --no-default-features --workspace --exclude candle-kernels --tests --examples -- -D warnings + args: --workspace --tests --examples -- -D warnings diff --git a/Cargo.toml b/Cargo.toml index 46e9fe3c..6337940a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,12 +4,12 @@ members = [ "candle-examples", "candle-hub", "candle-nn", + "candle-pyo3", "candle-transformers", "candle-wasm-example", ] exclude = [ "candle-kernels", - "candle-pyo3", ] [profile.release-with-debug] diff --git a/candle-pyo3/README.md b/candle-pyo3/README.md index 100a74d2..1887f269 100644 --- a/candle-pyo3/README.md +++ b/candle-pyo3/README.md @@ -1,4 +1,5 @@ +From the top level directory run: ``` -cargo build --release --package candle-pyo3 --no-default-features && cp -f target/release/libcandle.so candle.so +cargo build --release --package candle-pyo3 && cp -f ./target/release/libcandle.so candle.so PYTHONPATH=. python3 candle-pyo3/test.py ```