make cythonize detection compatible with /bin/dash on ubunutu

This commit is contained in:
Axel Kohlmeyer
2022-02-24 21:24:04 -05:00
parent d0507559a4
commit fb480f22fc

View File

@ -69,7 +69,7 @@ elif (test $1 = 0) then
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
if (type cythonize 2>&1 > /dev/null && test -e ../python_impl.cpp) then
if (test -e ../Makefile.package) then
sed -i -e 's/[^ \t]*-DMLIAP_PYTHON[^ \t]* //g' ../Makefile.package
fi