diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-05-25 08:04:34 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-05-25 08:07:18 +0200 |
commit | e563ed3af0dad1d3eaa165f5eb89b6f7ed0a1c9c (patch) | |
tree | 17ff37c0b95b91a116deb28324d94fb31b2a8ad9 /eclass/tests | |
parent | profiles: Prepare for Python 3.9 (diff) | |
download | gentoo-e563ed3af0dad1d3eaa165f5eb89b6f7ed0a1c9c.tar.gz gentoo-e563ed3af0dad1d3eaa165f5eb89b6f7ed0a1c9c.tar.bz2 gentoo-e563ed3af0dad1d3eaa165f5eb89b6f7ed0a1c9c.zip |
python-utils-r1.eclass: Enable python3_9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/tests')
-rwxr-xr-x | eclass/tests/python-utils-r1.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/eclass/tests/python-utils-r1.sh b/eclass/tests/python-utils-r1.sh index 192c1183e800..86b87ec173d4 100755 --- a/eclass/tests/python-utils-r1.sh +++ b/eclass/tests/python-utils-r1.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -115,6 +115,20 @@ 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 python3_9 python3.9 +test_var PYTHON python3_9 /usr/bin/python3.9 +if [[ -x /usr/bin/python3.9 ]]; then + abiflags=$(/usr/bin/python3.9 -c 'import sysconfig; print(sysconfig.get_config_var("ABIFLAGS"))') + test_var PYTHON_SITEDIR python3_9 "/usr/lib/python3.9/site-packages" + test_var PYTHON_INCLUDEDIR python3_9 "/usr/include/python3.9${abiflags}" + test_var PYTHON_LIBPATH python3_9 "/usr/lib*/libpython3.9${abiflags}$(get_libname)" + test_var PYTHON_CONFIG python3_9 "/usr/bin/python3.9${abiflags}-config" + test_var PYTHON_CFLAGS python3_9 "*-I/usr/include/python3.9*" + test_var PYTHON_LIBS python3_9 "*-lpython3.9*" +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 pypy3 pypy3 test_var PYTHON pypy3 /usr/bin/pypy3 if [[ -x /usr/bin/pypy3 ]]; then |