From 6cc622053617e8cef8cdd906e4215e5585b54287 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 1 Dec 2023 06:18:14 -0800 Subject: [PATCH] Make test-python work on Linux --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ef56aec..940a80f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,12 @@ +ifeq ($(shell uname), Darwin) + PY_EXT := dylib +else + PY_EXT := so +endif + test-python: cargo build --release - cp target/release/libinstant_distance.dylib instant-distance-py/test/instant_distance.so + cp target/release/libinstant_distance.$(PY_EXT) instant-distance-py/test/instant_distance.so PYTHONPATH=instant-distance-py/test/ python3 -m test clean: