Minimal working example linking the wheel statically

Open
#126 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, python
Domain
build-system

Research direction

Begin with the linked lapack_mre test repository and its generated pkg-config file; compare how the dependency is consumed from pyproject.toml and meson.build using meson-python. Reproduce the linker errors with scipy-openblas32 wheels, then document a portable minimal example and the conditions needed for the BLAS/LAPACK link to succeed.

Written by the indexing model from the issue text.

Description

Is it possible to create a minimal, cross-platform example using meson that properly links the wheel?

I have a need to call BLAS/LAPACK routines from within a C++ file included as part of a Python package. While I can get varying such implementations linked with my own machine, I'm finding it difficult to do so in a portable manner, which lead me here.

Ideally, I would like to be able to just specify scipy-openblas32 as a build dependency in some given package's pyproject.toml and then link to it as necessary within a meson.build file using meson-python.

Using some of numpy's tools (+this advice), I created test repository that generates a pkg-config file suitable for a meson-dependency object to use, but when I use these wheels unfortunately I get various linker errors. I can fix the build myself for my own machine, but this eliminates the portability.

Is there any "best practices" advice surrounding how to do this?

Dominant language
Shell
Stars
17
Forks
25
Avg merge
7h 10m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MacPython/openblas-libs

All issues in MacPython/openblas-libs

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.