instant-segment/Makefile

11 lines
253 B
Makefile
Raw Permalink Normal View History

ifeq ($(shell uname), Darwin)
PY_EXT := dylib
else
PY_EXT := so
endif
2021-03-24 09:59:57 +00:00
test-python:
cargo build --release
cp target/release/libinstant_segment.$(PY_EXT) instant-segment-py/test/instant_segment.so
2021-03-24 09:59:57 +00:00
PYTHONPATH=instant-segment-py/test/ python3 -m test