Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elpa
elpa
Commits
c92d3037
Commit
c92d3037
authored
Oct 30, 2018
by
Sebastian Ohlmann
Browse files
add some autoconf checks for python dependencies
parent
0a6bcaf4
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Makefile.am
View file @
c92d3037
...
...
@@ -624,7 +624,7 @@ endif
nodist_wrapper_la_SOURCES
=
python/pyelpa/wrapper.c
wrapper_la_LDFLAGS
=
-module
-avoid-version
-shared
$(AM_LDFLAGS)
wrapper_la_LIBADD
=
libelpa@SUFFIX@.la
wrapper_la_CFLAGS
=
-I
$(PYTHON_INCLUDE)
$(AM_CFLAGS)
wrapper_la_CFLAGS
=
$(PYTHON_INCLUDE)
$(NUMPY_INCLUDE)
$(AM_CFLAGS)
python/pyelpa/wrapper.c
:
python/pyelpa/wrapper.pyx
cython
$<
...
...
configure.ac
View file @
c92d3037
...
...
@@ -1307,6 +1307,24 @@ if test x"${enable_python}" = x"yes"; then
PYTHON_INCLUDE=`$PYTHON_CONFIG --includes`
AC_MSG_RESULT([$PYTHON_INCLUDE])
])
AC_MSG_CHECKING([numpy module])
AS_IF([$PYTHON -c "import numpy"], [AC_MSG_RESULT([found.])],
[AC_MSG_ERROR([cannot find numpy.])])
AC_MSG_CHECKING([mpi4py module])
AS_IF([$PYTHON -c "import mpi4py"], [AC_MSG_RESULT([found.])],
[AC_MSG_ERROR([cannot find mpi4py.])])
AC_MSG_CHECKING([cython module])
AS_IF([$PYTHON -c "import cython"], [AC_MSG_RESULT([found.])],
[AC_MSG_ERROR([cannot find cython.])])
AC_CHECK_PROG([cython_found], [cython], [yes], [no])
if test x"$cython_found" != x"yes" ; then
AC_MSG_ERROR([cython not found.])
fi
AC_ARG_VAR([NUMPY_INCLUDE], [Include flags for numpy])
AC_MSG_CHECKING([numpy include flags])
NUMPY_INCLUDE=-I`$PYTHON -c "import numpy; print(numpy.get_include())"`
AS_IF([test "$NUMPY_INCLUDE" = "-I"], [AC_MSG_ERROR([cannot get numpy include path.])])
AC_MSG_RESULT([$NUMPY_INCLUDE])
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment