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

pythonPackages.osqp: init at 0.6.1 #78883

Merged
merged 1 commit into from Feb 19, 2020

Conversation

drewrisinger
Copy link
Contributor

Motivation for this change

Add dependency for upcoming qiskit package #78772

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@drewrisinger drewrisinger changed the title Dr pr python osqp pythonPackages.osqp: init at 0.6.1 Jan 30, 2020

checkInputs = [ scipy pytestCheckHook mkl ];
preCheck = ''
export LD_LIBRARY_PATH="${mkl}/lib/":$LD_LIBRARY_PATH;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is mkl needed at runtime? or just part of the tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell, MKL is an optional runtime dependency. https://github.com/oxfordcontrol/osqp/blob/d7eeb245d5b7f0195bfc35b6cb71f4570d7ca18b/docs/get_started/linear_system_solvers.rst

It comes with a system solver built in, but if MKL is available it uses it for faster/larger problems.

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff LGTM
commit LGTM
upstream seems active
has tests 👍

[7 built, 2 copied (3.5 MiB), 0.7 MiB DL]
https://github.com/NixOS/nixpkgs/pull/78883
3 package built:
python27Packages.osqp python37Packages.osqp python38Packages.osqp

@jonringer
Copy link
Contributor

@GrahamcOfBorg build python27Packages.osqp python37Packages.osqp python38Packages.osqp

@jonringer
Copy link
Contributor

ping me if I don't get back to this in a day or 2

Oxford Splitting QP solver.
Dependency for cvxpy -> qiskit-aer.
@drewrisinger
Copy link
Contributor Author

@jonringer ping. Rebased on master, double-checked build on local.
@GrahamcOfBorg eval

@drewrisinger
Copy link
Contributor Author

@GrahamcOfBorg build python27Packages.osqp python37Packages.osqp python38Packages.osqp

@drewrisinger
Copy link
Contributor Author

bot build fails b/c requires non-free mkl for tests. Thoughts?

@jonringer
Copy link
Contributor

fine, passes on my machine

@jonringer jonringer merged commit 38c37f4 into NixOS:master Feb 19, 2020
@jonringer
Copy link
Contributor

https://github.com/NixOS/nixpkgs/pull/78883
3 package built:
python27Packages.osqp python37Packages.osqp python38Packages.osqp

@drewrisinger drewrisinger deleted the dr-pr-python-osqp branch February 20, 2020 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants