diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-05-05 20:00:53 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-05-05 20:01:08 +0200 |
commit | 582746d036443f3965028d564e05fd12ca4f10cf (patch) | |
tree | 6689794219bdf40d953545fc32ed7cf2ab281934 /eclass | |
parent | dev-python/more-itertools: Remove redundant dep (diff) | |
download | gentoo-582746d036443f3965028d564e05fd12ca4f10cf.tar.gz gentoo-582746d036443f3965028d564e05fd12ca4f10cf.tar.bz2 gentoo-582746d036443f3965028d564e05fd12ca4f10cf.zip |
eclass/tests/python-utils-r1.sh: Cover py3.10
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-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 eb8223ec6ac0..85a6a53654d3 100755 --- a/eclass/tests/python-utils-r1.sh +++ b/eclass/tests/python-utils-r1.sh @@ -129,6 +129,20 @@ fi test_var PYTHON_PKG_DEP python3_9 '*dev-lang/python*:3.9' test_var PYTHON_SCRIPTDIR python3_9 /usr/lib/python-exec/python3.9 +test_var EPYTHON python3_10 python3.10 +test_var PYTHON python3_10 /usr/bin/python3.10 +if [[ -x /usr/bin/python3.10 ]]; then + abiflags=$(/usr/bin/python3.10 -c 'import sysconfig; print(sysconfig.get_config_var("ABIFLAGS"))') + test_var PYTHON_SITEDIR python3_10 "/usr/lib/python3.10/site-packages" + test_var PYTHON_INCLUDEDIR python3_10 "/usr/include/python3.10${abiflags}" + test_var PYTHON_LIBPATH python3_10 "/usr/lib*/libpython3.10${abiflags}$(get_libname)" + test_var PYTHON_CONFIG python3_10 "/usr/bin/python3.10${abiflags}-config" + test_var PYTHON_CFLAGS python3_10 "*-I/usr/include/python3.10*" + test_var PYTHON_LIBS python3_10 "*-lpython3.10*" +fi +test_var PYTHON_PKG_DEP python3_10 '*dev-lang/python*:3.10' +test_var PYTHON_SCRIPTDIR python3_10 /usr/lib/python-exec/python3.10 + test_var EPYTHON pypy3 pypy3 test_var PYTHON pypy3 /usr/bin/pypy3 if [[ -x /usr/bin/pypy3 ]]; then |