pythonPackages.osqp: remove mkl dependency#84124
Conversation
Also add scipy. Cleanup commit slightly for formatting. Removing mkl allows this to be built in Hydra (mkl = unfree), and it seems the mkl dependency is somewhat optional given downstream packages build cleanly when removing mkl.
|
@GrahamcOfBorg build python37Packages.osqp python37Packages.cvxpy python38Packages.osqp python38Packages.cvxpy |
|
CC @matthewbauer, who is looking at making this type of thing parameterizable in #83888 |
|
Re numpy/scipy: They seem to be used in the code, it's just not listed in requirements
which I used when originally packaging.
|
|
This case is a little different because osqp doesn't use MKL for BLAS, but MKL PARDISO (https://software.intel.com/en-us/mkl-developer-reference-fortran-intel-mkl-pardiso-parallel-direct-sparse-solver-interface) which is unique to MKL. Anyway, it looks like this library just needs MKL to test the MKL functionality. Since osqp just uses dlopen, you can always enable MKL support through |
Ack, thanks for the good tips. I wasn't familiar with what MKL PARDISO did. |
|
@GrahamcOfBorg build python37Packages.qiskit-aer python37Packages.qiskit-ignis |
|
Result of 9 package built: |
bhipple
left a comment
There was a problem hiding this comment.
Result of nixpkgs-review pr 84124 1
9 package built:
- python27Packages.osqp - python37Packages.cvxpy - python37Packages.osqp - python37Packages.qiskit-aer - python37Packages.qiskit-ignis - python38Packages.cvxpy - python38Packages.osqp - python38Packages.qiskit-aer - python38Packages.qiskit-ignis|
Can you send a 20.03 backport PR as well? |
|
@bhipple python3Packages.osqp isn't in |
|
Ah ok, my bad! For some reason I thought we'd had this packaged for longer, but I was thinking of another related pkg. |
Motivation for this change
Removing mkl allows this to be built in Hydra (mkl is unfree-ish license), and it seems the mkl dependency is somewhat optional given downstream packages build cleanly when removing mkl.
Also add explicit numpy/scipy dependency.
Cleanup commit slightly for formatting.
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)