From ce9351d7e7bb6be9122daeba71a3f66d1f82b45a Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 2 Jul 2021 15:55:17 -0400 Subject: [PATCH] add package update processing for cythonize --- src/ML-IAP/Install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ML-IAP/Install.sh b/src/ML-IAP/Install.sh index 5c0c760662..08cdfecd88 100755 --- a/src/ML-IAP/Install.sh +++ b/src/ML-IAP/Install.sh @@ -67,4 +67,11 @@ elif (test $1 = 0) then fi rm -f ../mliap_model_python_couple.cpp ../mliap_model_python_couple.h sed -i -e '/^include.*python.*mliap_python.*$/d' ../Makefile.package.settings + +elif (test $1 = 2) then + if (test "$(type cythonize 2> /dev/null)" != "" && test -e ../python_impl.cpp) then + cythonize -3 ../mliap_model_python_couple.pyx + else + rm -f ../mliap_model_python_couple.cpp ../mliap_model_python_couple.h + fi fi