You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spin run does not show configuration errors from meson setup #324
error('!!!!!!!!!!!! Wrong Cython version !!!!!!!!!!!!!!!!!!!')
Then if there is no existing build directory spin test would call meson setup and show the error message:
$ rm -r build build-install/
$ spin testInvoking `build` prior to running tests: $ meson setup build --prefix=/usrThe Meson build systemVersion: 1.8.2...meson.build:32:0: ERROR: Problem encountered: !!!!!!!!!!!! Wrong Cython version !!!!!!!!!!!!!!!!!!!A full log can be found at /stuff/current/active/python-flint/build/meson-logs/meson-log.txtTraceback (most recent call last): File "/.../.venv/lib/python3.13/site-packages/spin/cmds/meson.py", line 388, in build raise RuntimeError( "Meson configuration failed; please try `spin build` again with the `--clean` flag." )RuntimeError: Meson configuration failed; please try `spin build` again with the `--clean` flag.If you suspect this is a bug in `spin`, please file a report at: https://github.com/scientific-python/spinincluding the above traceback and the following information: spin: 0.18, package: python-flintAborting.
If I instead do spin run then the configuration error from meson.build is not displayed:
$ rm -r build build-install/
$ spin run -- pytest $ meson setup build --prefix=/usrTraceback (most recent call last): File "/.../.venv/lib/python3.13/site-packages/spin/cmds/meson.py", line 388, in build raise RuntimeError( "Meson configuration failed; please try `spin build` again with the `--clean` flag." )RuntimeError: Meson configuration failed; please try `spin build` again with the `--clean` flag.If you suspect this is a bug in `spin`, please file a report at: https://github.com/scientific-python/spinincluding the above traceback and the following information: spin: 0.18, package: python-flintAborting.
It would be better if this also showed the meson setup output and especially the useful error message "Wrong Cython version".
I think maybe an exception should be made for the case where the build fails though. In that case the build output should be shown. Maybe it can be collected and displayed at the end based on the return code.
Activity
oscarbenjamin commentedon Aug 27, 2026
It looks deliberate that
spin rundoes a quiet build:spin/spin/cmds/meson.py
Lines 886 to 887 in 8da1266
I think maybe an exception should be made for the case where the build fails though. In that case the build output should be shown. Maybe it can be collected and displayed at the end based on the return code.