-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
pythonPackages.osqp: remove mkl dependency #84124
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
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)