Skip to content

Commit

Permalink
eclass/tests/python-utils-r1.sh: Add tests for py3.8
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Apr 19, 2020
1 parent f78a7b2 commit 73c127b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions eclass/tests/python-utils-r1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,20 @@ 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 python3_8 python3.8
test_var PYTHON python3_8 /usr/bin/python3.8
if [[ -x /usr/bin/python3.8 ]]; then
abiflags=$(/usr/bin/python3.8 -c 'import sysconfig; print(sysconfig.get_config_var("ABIFLAGS"))')
test_var PYTHON_SITEDIR python3_8 "/usr/lib/python3.8/site-packages"
test_var PYTHON_INCLUDEDIR python3_8 "/usr/include/python3.8${abiflags}"
test_var PYTHON_LIBPATH python3_8 "/usr/lib*/libpython3.8${abiflags}$(get_libname)"
test_var PYTHON_CONFIG python3_8 "/usr/bin/python3.8${abiflags}-config"
test_var PYTHON_CFLAGS python3_8 "*-I/usr/include/python3.8*"
test_var PYTHON_LIBS python3_8 "*-lpython3.8*"
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 pypy3 pypy3
test_var PYTHON pypy3 /usr/bin/pypy3
if [[ -x /usr/bin/pypy3 ]]; then
Expand Down

0 comments on commit 73c127b

Please sign in to comment.