diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-02-27 19:00:10 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-04-19 18:47:08 +0200 |
commit | 73c127b0891aae921d60478fe377bf6c4ee50f13 (patch) | |
tree | cc15b9006c0bc39fe105c114efb5de6ee4fb3f08 /eclass/tests/python-utils-r1.sh | |
parent | python-utils-r1.eclass: Fix PYTHON_LIBS for py3.8+ (diff) | |
download | gentoo-73c127b0891aae921d60478fe377bf6c4ee50f13.tar.gz gentoo-73c127b0891aae921d60478fe377bf6c4ee50f13.tar.bz2 gentoo-73c127b0891aae921d60478fe377bf6c4ee50f13.zip |
eclass/tests/python-utils-r1.sh: Add tests for py3.8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/tests/python-utils-r1.sh')
-rwxr-xr-x | eclass/tests/python-utils-r1.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/eclass/tests/python-utils-r1.sh b/eclass/tests/python-utils-r1.sh index 377bb474a3ac..192c1183e800 100755 --- a/eclass/tests/python-utils-r1.sh +++ b/eclass/tests/python-utils-r1.sh @@ -101,6 +101,20 @@ fi test_var PYTHON_PKG_DEP python3_7 '*dev-lang/python*:3.7' test_var PYTHON_SCRIPTDIR python3_7 /usr/lib/python-exec/python3.7 +test_var EPYTHON python3_8 python3.8 +test_var PYTHON python3_8 /usr/bin/python3.8 +if [[ -x /usr/bin/python3.8 ]]; then + abiflags=$(/usr/bin/python3.8 -c 'import sysconfig; print(sysconfig.get_config_var("ABIFLAGS"))') + test_var PYTHON_SITEDIR python3_8 "/usr/lib/python3.8/site-packages" + test_var PYTHON_INCLUDEDIR python3_8 "/usr/include/python3.8${abiflags}" + test_var PYTHON_LIBPATH python3_8 "/usr/lib*/libpython3.8${abiflags}$(get_libname)" + test_var PYTHON_CONFIG python3_8 "/usr/bin/python3.8${abiflags}-config" + test_var PYTHON_CFLAGS python3_8 "*-I/usr/include/python3.8*" + test_var PYTHON_LIBS python3_8 "*-lpython3.8*" +fi +test_var PYTHON_PKG_DEP python3_8 '*dev-lang/python*:3.8' +test_var PYTHON_SCRIPTDIR python3_8 /usr/lib/python-exec/python3.8 + test_var EPYTHON pypy3 pypy3 test_var PYTHON pypy3 /usr/bin/pypy3 if [[ -x /usr/bin/pypy3 ]]; then |