Skip to content

BLD: Print the BLAS and LAPACK information before the wheel tests - #226

Merged
bashtage merged 3 commits into
MacPython:mainfrom
bashtage:wip-wheels-blas-info
Nov 5, 2026
Merged

bashtage merged 3 commits into
MacPython:mainfrom
bashtage:wip-wheels-blas-info

Conversation

@bashtage

@bashtage bashtage commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Print more BLAS information before the wheel tests, to help diagnose failures that depend on the platform.

In the run of 5 November, numpy.show_runtime() ran before SciPy was imported, so threadpoolctl listed only the OpenBLAS library of NumPy. SciPy ships its own OpenBLAS (a different version in a local check). On Windows ARM64 the output had no BLAS entry at all.

Changes

  • The test command imports statsmodels.api first, so the library of SciPy is loaded and listed by numpy.show_runtime() too.
  • It then prints numpy.show_config() and scipy.show_config(), the BLAS and LAPACK that each was built with.

Why it helps: the two failing tests of that run (test_get_prediction_default_uses_model_offset[nb_offset] on Linux musllinux and Windows, test_zero_collinear on Windows ARM64) depend on rounding in the BLAS library. The architecture field of the log (Haswell or SkylakeX) differed between jobs that passed and failed.

Not changed

  • The Pyodide test command and the tests themselves.

Checked

  • I ran the command up to the test call in a local environment (Linux, numpy 2.5.4, scipy 1.18.1, threadpoolctl 3.7): it exits normally and lists two OpenBLAS libraries.

Not verified

  • The command has not run on GitHub, so the output on Windows (the quoting of the one-line python -c) and on Windows ARM64 is unchecked.

Written with Claude Code (Claude Sonnet 5.5).

🤖 Generated with Claude Code

numpy.show_runtime() ran before SciPy was imported, so threadpoolctl
listed only the OpenBLAS library of NumPy, although SciPy ships its own
OpenBLAS (a different version in a local check). In the run of 5
November the output had no BLAS entry at all on Windows ARM64.

Import statsmodels.api first, so that the library of SciPy is loaded and
listed too, and print numpy.show_config() and scipy.show_config() for the
BLAS and LAPACK that each was built with. Several wheel tests failed
depending on the platform and the OpenBLAS kernel, which the printed
architecture shows.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@bashtage
bashtage marked this pull request as ready for review November 5, 2026 07:16
@bashtage
bashtage merged commit 86650cb into MacPython:main Nov 5, 2026
0 of 54 checks passed
@bashtage
bashtage deleted the wip-wheels-blas-info branch November 5, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant