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:
Alexandre Duret-Lutz 2021-06-29 21:10:13 +02:00
parent d43f23b423
commit 47348a9755
3 changed files with 25 additions and 20 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2010-2011, 2014-2016, 2018-2020 Laboratoire de Recherche
# Copyright (C) 2010-2011, 2014-2016, 2018-2021 Laboratoire de Recherche
# et Developpement de l'EPITA (LRDE).
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6
# (LIP6), département Systèmes Répartis Coopératifs (SRC), Université
@ -114,7 +114,7 @@ case $1 in
exec sh -x "$@";;
*.pl)
exec $PERL "$@";;
*python*|*jupyter*)
*python*|*jupyter*|*pypy*)
PYTHONPATH=$pypath DYLD_LIBRARY_PATH=$modpath:$DYLD_LIBRARY_PATH \
exec $PREFIXCMD "$@";;
*)