Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
elpa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
elpa
elpa
Commits
c92d3037
Commit
c92d3037
authored
Oct 30, 2018
by
Sebastian Ohlmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some autoconf checks for python dependencies
parent
0a6bcaf4
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
Makefile.am
Makefile.am
+1
-1
configure.ac
configure.ac
+18
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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