This is an automated email from the git hooks/post-receive script. logari81 pushed a commit to branch master in repository getfem.
The following commit(s) were added to refs/heads/master by this push: new 4bcad6f Support EXT_SUFFIX of distutils in Python 3 4bcad6f is described below commit 4bcad6f9da1fdfffe86269c1dc5c8a9171bda978 Author: Konstantinos Poulios <logar...@gmail.com> AuthorDate: Wed Mar 25 14:49:49 2020 +0100 Support EXT_SUFFIX of distutils in Python 3 --- configure.ac | 2 ++ interface/src/python/Makefile.am | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index c4771aa..b5d52fb 100644 --- a/configure.ac +++ b/configure.ac @@ -1013,6 +1013,8 @@ dnl AM_PATH_PYTHON(2.2) WARNING_MSG="$WARNING_MSG\n$MSG" fi fi + PYTHON_SO=`$PYTHON -c "import distutils.sysconfig, sys; get = distutils.sysconfig.get_config_var; sys.stdout.write(get('EXT_SUFFIX') or get('SO') or '.so');"` + AC_SUBST(PYTHON_SO) fi AM_CONDITIONAL(BUILDPYTHON, test x$usepython = xYES) diff --git a/interface/src/python/Makefile.am b/interface/src/python/Makefile.am index 8dd5132..8b241a1 100644 --- a/interface/src/python/Makefile.am +++ b/interface/src/python/Makefile.am @@ -23,13 +23,13 @@ gfpythondir=$(pythondir)/getfem gfpyexecdir=$(pyexecdir)/getfem gfpython_PYTHON = getfem.py __init__.py -nodist_gfpyexec_PYTHON = _getfem.so +nodist_gfpyexec_PYTHON = _getfem$(PYTHON_SO) EXTRA_DIST = getfem_python.c # $(warning PSEUDO_FUNCTIONS= $(PSEUDO_FUNCTIONS)) -CLEANFILES = getfem.py _getfem.so *.o getfem_python_c.o getfem_python_c.c getfem.pyc +CLEANFILES = getfem.py _getfem*.so *.o getfem_python_c.o getfem_python_c.c getfem.pyc if BUILDPYTHONPAR @@ -53,13 +53,13 @@ getfem_python_c.c : getfem_python.c cp $(srcdir)/getfem_python.c getfem_python_c.c # ARCHFLAGS is set to empty to disable universal binaries with python 2.5 on macos 10.5 -_getfem.so: getfem_python_c.c ../libgetfemint.la $(GETFEM_LIB_LA) - touch _getfem.so && rm _getfem.so +_getfem$(PYTHON_SO): getfem_python_c.c ../libgetfemint.la $(GETFEM_LIB_LA) + touch _getfem$(PYTHON_SO) && rm _getfem$(PYTHON_SO) ARCHFLAGS="" CC="$(CC)" CFLAGS="$(CFLAGS)" $(PYTHON) setup.py -v build @PYTHON_CC_ARG@ --build-temp . --build-base . --build-lib . --force #LDSHARED="$(CXX) -shared" ARCHFLAGS="" python setup.py -v build --build-temp . --build-base . --build-lib . --force -all: _getfem.so getfem.py +all: _getfem$(PYTHON_SO) getfem.py #pyexec_LTLIBRARIES = libgfpython.la #libgfpython_la_LIBADD = ../.libs/libgetfemint.a @GETFEM_STATICLIBS@ #libgfpython_la_SOURCES = \