$ ./configure --disable-static --disable-rpath --enable-wide-character-type --enable-python PYTHON_VERSION=3.8
[...]
$ grep ^PYTHON.= Makefile
PYTHON = python3.8
Within libewf-20230212, make itself knows the right Python interpreter. However, this make variable is not exported. As a result, when make check invokes test_python_module.sh, the environment has no PYTHON set, and test_python_modules.sh then defaults to usr /usr/bin/python. In my case, /usr/bin/python is a different Python version (2.7) and refuses to load the just-built pyewf.so.
If I add export PYTHON to tests/Makefile.am, the check job succeeds with no failures.