|
'pynng'` in `check()`**
The `PYTHONPATH` in `check()` was set to `build/lib`, but `setup.py build` places the compiled extension in a platform-specific subdirectory (e.g. `build/lib.linux-aarch64-cpython-314/`) — not directly under `build/lib`. As a result, pytest could not locate the `pynng` module and all 7 test files failed to import.
The fix points `PYTHONPATH` at the source root (`$srcdir/$_sourcedir`) instead. Since `setup.py` copies the built `_nng.abi3.so` back into the source `pynng/` directory as a final build step, the package is importable directly from there without needing to resolve the platform-specific build path.
|