Skip to content

Commit

Permalink
starpupy: Make sure there is setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
sthibaul committed Oct 14, 2024
1 parent 175fa67 commit e5a489c
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4182,6 +4182,21 @@ then
fi
fi
fi
if test "x$enable_starpupy" != xno
then
AC_MSG_CHECKING(for python3 setuptools)
if $PYTHON -c "import setuptools" ; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
if test "x$enable_starpupy" = xyes ; then
AC_MSG_ERROR([setuptools missing, cannot install StarPU python interface (consider installing python-setuptools)])
else
AC_MSG_WARN([setuptools missing, cannot install StarPU python interface (consider installing python-setuptools)])
enable_starpupy=no
fi
fi
fi

if test "x$enable_starpupy" != xno
then
Expand All @@ -4194,9 +4209,7 @@ then
else
AC_MSG_WARN([python3 module joblib missing, cannot build full StarPU python interface (consider running 'pip3 install joblib')])
fi
fi
if test "x$enable_starpupy" != xno
then

AC_MSG_CHECKING(for python3 module cloudpickle)
AC_PYTHON_MODULE(cloudpickle,[cloudpickle_avail=yes],[cloudpickle_avail=no])
AC_MSG_RESULT($cloudpickle_avail)
Expand All @@ -4205,9 +4218,7 @@ then
else
AC_MSG_WARN([python3 module cloudpickle missing, cannot build full StarPU python interface (consider running 'pip3 install cloudpickle')])
fi
fi
if test "x$enable_starpupy" != xno
then

starpupy_support=yes
AC_MSG_CHECKING(for python3 module numpy)
AC_PYTHON_MODULE(numpy,[numpy_avail=yes],[numpy_avail=no])
Expand Down

0 comments on commit e5a489c

Please sign in to comment.