Cleanup the pyo3 setup. (#705)

This commit is contained in:
Laurent Mazare
2023-09-01 15:26:18 +02:00
committed by GitHub
parent af552a5274
commit 237323c2bc
3 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,15 @@
pyo3-test:
cargo build --profile=release-with-debug --package candle-pyo3
cp -f ./target/release-with-debug/libcandle.so candle.so
PYTHONPATH=.:$PYTHONPATH python3 candle-pyo3/test.py
pyo3-test-macos:
cargo build --profile=release-with-debug --package candle-pyo3
cp -f ./target/release-with-debug/libcandle.dylib candle.so
PYTHONPATH=.:$PYTHONPATH python3 candle-pyo3/test.py
.PHONY: pyo3-test pyo3-test-macos clean-ptx clean test
clean-ptx:
find target -name "*.ptx" -type f -delete
echo "" > candle-kernels/src/lib.rs
@ -11,8 +23,4 @@ clean:
test:
cargo test
pyo3-test:
cargo build --profile=release-with-debug --package candle-pyo3
python3 candle-pyo3/test.py
all: test