Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: BLD: allow building OpenBLAS from source in a SciPy wheel #22047

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rgommers
Copy link
Member

@rgommers rgommers commented Dec 10, 2024

Reference issue

Closes gh-21396

What does this implement/fix?

Implements the feature suggested in gh-21396. See #21396 (comment) for a detailed rationale.

Improves the error message for the all-too-common " ERROR: Dependency "openblas" not found" end to an build attempt. There are 72 issues with that message currently, with gh-16308 the most high-traffic recent one.

Additional information

Passes all tests for me on Linux x86-64 and macOS arm64.

Requires a fix for meson-python#711 still and that fix being released in a new meson-python version. Until that is done, the problem can be worked around for testing purposes with: LD_LIBRARY_PATH=/path/to/site-packages/scipy/special.

Opening the PR as draft now to support the discussion in gh-21396. It's ~20 lines of code, and that's as concise as it should stay (unless we want to add a CI job here rather than in a separate repo - but happy to keep it separate for now). All the complexity to support this is part of other repos.

Also, the highs subproject hasn't given us any problems so far, which is nice. openblas will be the second subproject; more may follow after (xref gh-17751).

@rgommers rgommers added enhancement A new feature or improvement Build issues Issues with building from source, including different choices of architecture, compilers and OS Meson Items related to the introduction of Meson as the new build system for SciPy labels Dec 10, 2024
Implements the feature suggested in scipy#21396.

Requires a fix for meson-python#711 still and that fix being released
in a new meson-python version. Until that is done, the problem can
be worked around easily for testing purposes with:
`LD_LIBRARY_PATH=/path/to/site-packages/scipy/special`.

[ci skip]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build issues Issues with building from source, including different choices of architecture, compilers and OS enhancement A new feature or improvement Meson Items related to the introduction of Meson as the new build system for SciPy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Integrating OpenBLAS Meson build
1 participant