commit:     582746d036443f3965028d564e05fd12ca4f10cf
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May  5 18:00:53 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May  5 18:01:08 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=582746d0

eclass/tests/python-utils-r1.sh: Cover py3.10

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/tests/python-utils-r1.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/eclass/tests/python-utils-r1.sh b/eclass/tests/python-utils-r1.sh
index eb8223ec6ac..85a6a53654d 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

Reply via email to