Allow python to build with non-scipy blas and lapack #151
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows the solver to be compiled for python without using blas/lapack functions from scipy. Specifying one of the supported blas/lapack features (e.g.
sdp-mkl
, `sdp-accelerate') will now use those instead, following the behaviour of non-python builds.If the
python
feature is specified without naming a blas distribution, then the previous behaviour of acquiring blas/lapack pointers from scipy is maintained. This is the preferred method in particular for distribution on pypi.Note that the python interface should still be built via
maturin
.For the standard build with the clarabel using scipy blas / lapack:
maturin develop --release
To build the python interface using a local blas/lapack distribution (e.g. mkl):
maturin develop --release --features python,sdp-mkl