Reenable pyo3 in the workspace list (#170)
* Enable pyo3 back. * Adapt the CI.
This commit is contained in:
parent
d1f6fad84a
commit
d1f5d44c04
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue