Conversation
costrouc
left a comment
There was a problem hiding this comment.
Small fixes required but otherwise good. nix-review passed
There was a problem hiding this comment.
Remove period from description
There was a problem hiding this comment.
remove period from description
There was a problem hiding this comment.
Do we really need this? Can we not package that one separately?
There was a problem hiding this comment.
I could download the source separately but AFAICT the python module needs the osqp source, i.e. it's not just linking against a library [1].
[1]
https://github.com/oxfordcontrol/osqp-python/blob/master/setup.py#L95
teh
left a comment
There was a problem hiding this comment.
thanks for the review!
|
Heads up, this PR can fail at test time, possibly due to bad seeds: This is the second time I've run this build. The first time the value was ~1.2 Given the nature of the test, it is probably a bug in the software |
|
That's pretty bad! And can't reproduce. Can you share your build command? |
|
Oops! cvxopt works fine on unstable, actually. The problem was that I was pulling cvxopt into a shell from this PR (which is broken) and I was too rushed to tell the differentiate between the suffixes. Unfortunately, I am still getting a test error with cvxpy : / I pinned my nix-shell to your PR. Here's a compressed shell file: # shell.nix
{ ... }:
let
hostpkgs = import <nixpkgs> {};
srcDef = builtins.fromJSON ''{
"url": "https://github.com/NixOS/nixpkgs",
"rev": "0115285de38b27ed9c3cf900ec3abff0a7a37632",
"date": "2019-04-19T11:38:25+01:00",
"sha256": "05yb5ww7wl68v4fwq0fg6k6sdf49ykfr7yckhlyx2a1glzpdzs1h",
"fetchSubmodules": false
}'';
in
with (import (hostpkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
inherit (srcDef) rev sha256;
}) { });
mkShell {
buildInputs = [
(python36.withPackages (ps: with ps; [
cvxpy
]))
];
}With the nixos commit being this PR: 0115285 I also copied your default.nix, placed it explicitly in the |
|
I did a rebase against master and several rebuilds / tests and still can't reproduce. One thing that's a bit confusing is that you got numerical errors first on cvxopt and now cvxpy. The only similar incident I can remember recently was related to an openblas bug. What's your CPU architecture (/proc/cpuinfo)? I'm on |
|
Quick followup -- I just built this on an Let me know if I can help debug this further. I'm not quite sure what to do next. |
|
I think this was superseded by #78898, which was just merged. Feel free to close @jonringer @FRidh @costrouc @teh |
Motivation for this change
Add cvxpy + dependencies
Finishing off the cvxpy packaging mentioned in #45047
Things done
sandboxinnix.confon non-NixOS)nix-shell -p nix-review --run "nix-review wip"./result/bin/)nix path-info -Sbefore and after)