update build system to make it auto-adapt to include python support or not into MLIAP

This commit is contained in:
Axel Kohlmeyer
2020-12-07 17:35:10 -05:00
parent 3ed41295cd
commit 3f5a896aab
13 changed files with 112 additions and 28 deletions

View File

@ -2,6 +2,6 @@
# See the README file for more explanation
python_SYSINC = $(shell which python-config > /dev/null 2>&1 && python-config --includes || :)
python_SYSLIB = $(shell which python-config > /dev/null 2>&1 && python-config --ldflags || :)
python_SYSLIB = -lpython3 $(shell which python-config > /dev/null 2>&1 && python-config --ldflags || :)
python_SYSPATH =
PYTHON=python

View File

@ -0,0 +1,3 @@
../mliap_model_python_couple.cpp: ../mliap_model_python_couple.pyx
cythonize -3 ../mliap_model_python_couple.cpp