New comment by TinfoilSubmarine on void-packages repository https://github.com/void-linux/void-packages/pull/36973#issuecomment-1117364795 Comment: I moved the `PYTHONPATH=...` to a separate line, this will fix it as long as `make_check_pre` doesn't clear environment. It could also be left inside, but done as... ``` ${make_check_pre} export PYTHONPATH=$(cd build/lib* && pwd)"; python3 -m pytest ${make_check_args} $make_check_target} ``` if there were concerns about make_check_pre clearing/changing the envvars.