From 7bcc6455181c463e6d48ebd39469681dc9a7af6e Mon Sep 17 00:00:00 2001 From: lhausamm <loic_hausammann@hotmail.com> Date: Fri, 17 Nov 2017 13:35:49 +0100 Subject: [PATCH] Remove python in makefile --- configure.ac | 62 ++++++++++++++++++++++++------------------------- src/Makefile.am | 4 ++-- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/configure.ac b/configure.ac index 6b122dbd97..107b3041a0 100644 --- a/configure.ac +++ b/configure.ac @@ -79,38 +79,38 @@ if test "$enable_ipo" = "yes"; then fi # Compiling with Python wrapper -AC_ARG_WITH([python], - [AS_HELP_STRING([--with-python=PATH], - [Root directory of python3] - )], - [], - [with_python="no"] -) - -have_python="no" -if test "x$with_python" != "xno"; then - if test "x$with_python" != "xyes" -a "x$with_python" != "x"; then - PYTHON_INCS=`$with_python/bin/python3-config --includes` - PYTHON_LIBS=`$with_python/bin/python3-config --ldflags` - else - PYTHON_INCS="" - PYTHON_LIBS="" - fi - - OLD_CPPFLAGS="$CPPFLAGS" - - CPPFLAGS="$CPPFLAGS $PYTHON_INCS" +#AC_ARG_WITH([python], +# [AS_HELP_STRING([--with-python=PATH], +# [Root directory of python3] +# )], +# [], +# [with_python="no"] +#) + +#have_python="no" +#if test "x$with_python" != "xno"; then +# if test "x$with_python" != "xyes" -a "x$with_python" != "x"; then +# PYTHON_INCS=`$with_python/bin/python3-config --includes` +# PYTHON_LIBS=`$with_python/bin/python3-config --ldflags` +# else +# PYTHON_INCS="" +# PYTHON_LIBS="" +# fi + +# OLD_CPPFLAGS="$CPPFLAGS" + +# CPPFLAGS="$CPPFLAGS $PYTHON_INCS" - have_python="yes" - AC_SUBST([PYTHON_INCS]) - AC_SUBST([PYTHON_LIBS]) - AC_CHECK_HEADER( - Python.h, - AC_DEFINE([SWIFT_PYTHON_WRAPPER],1,[Enable the python wrapper]), - AC_MSG_ERROR(something is wrong with the python library! PYTHON_INCS=$PYTHON_INCS) - ) - CPPFLAGS="$OLD_CPPFLAGS" -fi +# have_python="yes" +# AC_SUBST([PYTHON_INCS]) +# AC_SUBST([PYTHON_LIBS]) +# AC_CHECK_HEADER( +# Python.h, +# AC_DEFINE([SWIFT_PYTHON_WRAPPER],1,[Enable the python wrapper]), +# AC_MSG_ERROR(something is wrong with the python library! PYTHON_INCS=$PYTHON_INCS) +# ) +# CPPFLAGS="$OLD_CPPFLAGS" +#fi # Check for MPI. Need to do this before characterising the compiler (C99 mode), diff --git a/src/Makefile.am b/src/Makefile.am index aeb1102701..7fc5981ebd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -16,10 +16,10 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # Add the debug flag to the whole thing -AM_CFLAGS = $(HDF5_CPPFLAGS) $(PYTHON_INCS) +AM_CFLAGS = $(HDF5_CPPFLAGS) # Assign a "safe" version number -AM_LDFLAGS = $(HDF5_LDFLAGS) $(FFTW_LIBS) -version-info 0:0:0 $(PYTHON_LIBS) +AM_LDFLAGS = $(HDF5_LDFLAGS) $(FFTW_LIBS) -version-info 0:0:0 # The git command, if available. GIT_CMD = @GIT_CMD@ -- GitLab