eclass/tests/python-utils-r1.sh: Add tests for py3.7
authorMichał Górny <mgorny@gentoo.org>
Wed, 20 Nov 2019 08:46:00 +0000 (09:46 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 20 Nov 2019 08:46:35 +0000 (09:46 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/tests/python-utils-r1.sh

index 226eba9370e1a9d6f02bd4ac740cee24f4cb6972..e7c533d5f3372281898b870bd6b02442ff987007 100755 (executable)
@@ -83,6 +83,18 @@ fi
 test_var PYTHON_PKG_DEP python3_6 '*dev-lang/python*:3.6'
 test_var PYTHON_SCRIPTDIR python3_6 /usr/lib/python-exec/python3.6
 
+test_var EPYTHON python3_7 python3.7
+test_var PYTHON python3_7 /usr/bin/python3.7
+if [[ -x /usr/bin/python3.7 ]]; then
+       abiflags=$(/usr/bin/python3.7 -c 'import sysconfig; print(sysconfig.get_config_var("ABIFLAGS"))')
+       test_var PYTHON_SITEDIR python3_7 "/usr/lib/python3.7/site-packages"
+       test_var PYTHON_INCLUDEDIR python3_7 "/usr/include/python3.7${abiflags}"
+       test_var PYTHON_LIBPATH python3_7 "/usr/lib*/libpython3.7${abiflags}$(get_libname)"
+       test_var PYTHON_CONFIG python3_7 "/usr/bin/python3.7${abiflags}-config"
+fi
+test_var PYTHON_PKG_DEP python3_7 '*dev-lang/python*:3.7'
+test_var PYTHON_SCRIPTDIR python3_7 /usr/lib/python-exec/python3.7
+
 test_var EPYTHON jython2_7 jython2.7
 test_var PYTHON jython2_7 /usr/bin/jython2.7
 if [[ -x /usr/bin/jython2.7 ]]; then