Make `test-python` Make-target work on Linux (#51)
This commit is contained in:
parent
ae858ead5c
commit
8a606b9460
8
Makefile
8
Makefile
|
@ -1,4 +1,10 @@
|
||||||
|
ifeq ($(shell uname), Darwin)
|
||||||
|
PY_EXT := dylib
|
||||||
|
else
|
||||||
|
PY_EXT := so
|
||||||
|
endif
|
||||||
|
|
||||||
test-python:
|
test-python:
|
||||||
cargo build --release
|
cargo build --release
|
||||||
cp target/release/libinstant_segment.dylib instant-segment-py/test/instant_segment.so
|
cp target/release/libinstant_segment.$(PY_EXT) instant-segment-py/test/instant_segment.so
|
||||||
PYTHONPATH=instant-segment-py/test/ python3 -m test
|
PYTHONPATH=instant-segment-py/test/ python3 -m test
|
||||||
|
|
Loading…
Reference in New Issue