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
Cvxpy #59518
Cvxpy #59518
Conversation
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.
Small fixes required but otherwise good. nix-review
passed
checkPhase = "nosetests -v"; | ||
|
||
meta = { | ||
description = "A Python-embedded modeling language for convex optimization problems."; |
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.
Remove period from description
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.
done
, nose | ||
, lib | ||
}: | ||
buildPythonPackage rec { |
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.
newline
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.
done
}; | ||
|
||
meta = { | ||
description = "This is the Python package for ECOS: Embedded Cone Solver."; |
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.
remove period from description
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.
done
owner = "oxfordcontrol"; | ||
repo = "osqp-python"; | ||
rev = "v0.5.0"; | ||
fetchSubmodules = true; |
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.
Do we really need this? Can we not package that one separately?
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.
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
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.
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
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)