improve PyPy support by following PEP 3149
This implement the suggestion is issue #467 but the test suite is still not completely passing with pypy3. * m4/pypath.m4: Detect the suffix for extensions. * python/Makefile.am: Use it. * tests/run.in: Recognize pypy3 as a Python version.
This commit is contained in:
parent
d43f23b423
commit
47348a9755
3 changed files with 25 additions and 20 deletions
|
|
@ -8,6 +8,10 @@ AC_DEFUN([adl_CHECK_PYTHON],
|
|||
[adl_cv_python_inc],
|
||||
[adl_cv_python_inc=`$PYTHON -c "import sys; from distutils import sysconfig;]
|
||||
[sys.stdout.write(sysconfig.get_python_inc())" 2>/dev/null`])
|
||||
AC_CACHE_CHECK([for $am_display_PYTHON extension suffix],
|
||||
[adl_cv_python_ext],
|
||||
[adl_cv_python_ext=`$PYTHON -c "import importlib.machinery as i; print(i.EXTENSION_SUFFIXES[[0]])"`])
|
||||
AC_SUBST([PYEXT], [${adl_cv_python_ext%.*}])
|
||||
AC_SUBST([PYTHONINC], [$adl_cv_python_inc])
|
||||
adl_save_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$adl_save_CPPFLAGS -I$PYTHONINC"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue