We build and install Python modules into a stage directory w/in the FreeBSD ports framework. Then we run pytest in the "tests" folder of the project's working directory while PYTHONPATH points to this module installed in the stage directory.
In many cases (not always) pytest fails to find this module in PYTHONPATH.
We build and install Python modules into a stage directory w/in the FreeBSD ports framework. Then we run pytest in the "tests" folder of the project's working directory while PYTHONPATH points to this module installed in the stage directory.
In many cases (not always) pytest fails to find this module in PYTHONPATH.
Testcase: https://github.com/moderngl/moderngl
Full log:
Pytest failed to find moderngl.mgl. But a regular python executable invocation succeeds:
pytest-7.3.1 Python-3.9 FreeBSD 13.2