summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-05-08 12:15:35 +0200
committerMichał Górny <mgorny@gentoo.org>2022-05-09 22:31:45 +0200
commit53fc3b443284eb94b3bfb4266ee0efb890441dbd (patch)
tree1d179e57acf29a868146c764824ae2b4b31b4a67 /eclass/tests
parentapp-office/libreoffice: ... uncomment patch (diff)
downloadgentoo-53fc3b443284eb94b3bfb4266ee0efb890441dbd.tar.gz
gentoo-53fc3b443284eb94b3bfb4266ee0efb890441dbd.tar.bz2
gentoo-53fc3b443284eb94b3bfb4266ee0efb890441dbd.zip
python-utils-r1.eclass: Add support for python3.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/tests')
-rwxr-xr-xeclass/tests/python-utils-r1.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/eclass/tests/python-utils-r1.sh b/eclass/tests/python-utils-r1.sh
index 9c41798c4727..e0fc0aab3c03 100755
--- a/eclass/tests/python-utils-r1.sh
+++ b/eclass/tests/python-utils-r1.sh
@@ -147,6 +147,20 @@ 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 python3_11 python3.11
+test_var PYTHON python3_11 /usr/bin/python3.11
+if [[ -x /usr/bin/python3.11 ]]; then
+ abiflags=$(/usr/bin/python3.11 -c 'import sysconfig; print(sysconfig.get_config_var("ABIFLAGS"))')
+ test_var PYTHON_SITEDIR python3_11 "/usr/lib/python3.11/site-packages"
+ test_var PYTHON_INCLUDEDIR python3_11 "/usr/include/python3.11${abiflags}"
+ test_var PYTHON_LIBPATH python3_11 "/usr/lib*/libpython3.11${abiflags}$(get_libname)"
+ test_var PYTHON_CONFIG python3_11 "/usr/bin/python3.11${abiflags}-config"
+ test_var PYTHON_CFLAGS python3_11 "*-I/usr/include/python3.11*"
+ test_var PYTHON_LIBS python3_11 "*-lpython3.11*"
+fi
+test_var PYTHON_PKG_DEP python3_11 '*dev-lang/python*:3.11'
+test_var PYTHON_SCRIPTDIR python3_11 /usr/lib/python-exec/python3.11
+
test_var EPYTHON pypy3 pypy3
test_var PYTHON pypy3 /usr/bin/pypy3
if [[ -x /usr/bin/pypy3 ]]; then