Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/tests/
Date: Wed, 05 May 2021 18:20:05
Message-Id: 1620237668.582746d036443f3965028d564e05fd12ca4f10cf.mgorny@gentoo
1 commit: 582746d036443f3965028d564e05fd12ca4f10cf
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 5 18:00:53 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 5 18:01:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=582746d0
7
8 eclass/tests/python-utils-r1.sh: Cover py3.10
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 eclass/tests/python-utils-r1.sh | 14 ++++++++++++++
13 1 file changed, 14 insertions(+)
14
15 diff --git a/eclass/tests/python-utils-r1.sh b/eclass/tests/python-utils-r1.sh
16 index eb8223ec6ac..85a6a53654d 100755
17 --- a/eclass/tests/python-utils-r1.sh
18 +++ b/eclass/tests/python-utils-r1.sh
19 @@ -129,6 +129,20 @@ fi
20 test_var PYTHON_PKG_DEP python3_9 '*dev-lang/python*:3.9'
21 test_var PYTHON_SCRIPTDIR python3_9 /usr/lib/python-exec/python3.9
22
23 +test_var EPYTHON python3_10 python3.10
24 +test_var PYTHON python3_10 /usr/bin/python3.10
25 +if [[ -x /usr/bin/python3.10 ]]; then
26 + abiflags=$(/usr/bin/python3.10 -c 'import sysconfig; print(sysconfig.get_config_var("ABIFLAGS"))')
27 + test_var PYTHON_SITEDIR python3_10 "/usr/lib/python3.10/site-packages"
28 + test_var PYTHON_INCLUDEDIR python3_10 "/usr/include/python3.10${abiflags}"
29 + test_var PYTHON_LIBPATH python3_10 "/usr/lib*/libpython3.10${abiflags}$(get_libname)"
30 + test_var PYTHON_CONFIG python3_10 "/usr/bin/python3.10${abiflags}-config"
31 + test_var PYTHON_CFLAGS python3_10 "*-I/usr/include/python3.10*"
32 + test_var PYTHON_LIBS python3_10 "*-lpython3.10*"
33 +fi
34 +test_var PYTHON_PKG_DEP python3_10 '*dev-lang/python*:3.10'
35 +test_var PYTHON_SCRIPTDIR python3_10 /usr/lib/python-exec/python3.10
36 +
37 test_var EPYTHON pypy3 pypy3
38 test_var PYTHON pypy3 /usr/bin/pypy3
39 if [[ -x /usr/bin/pypy3 ]]; then