summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-09-01 15:26:18 +0200
committerGitHub <noreply@github.com>2023-09-01 14:26:18 +0100
commit237323c2bcfde1b7f881d2b71e21be27b3f73838 (patch)
treef7dc01f93777f5c5a3922d0f9cecdac063933468 /Makefile
parentaf552a52748cec1936472f2b10d4d65995846c54 (diff)
downloadcandle-237323c2bcfde1b7f881d2b71e21be27b3f73838.tar.gz
candle-237323c2bcfde1b7f881d2b71e21be27b3f73838.tar.bz2
candle-237323c2bcfde1b7f881d2b71e21be27b3f73838.zip
Cleanup the pyo3 setup. (#705)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index cc0a0a36..1c4009b4 100644
--- a/Makefile
+++ b/Makefile
@@ -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