-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
pythonPackages.scs: init at 2.1.1 #78897
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
@GrahamcOfBorg build python3Packages.scs |
I had originally done that but wasn't sure what the best/most replicable
way of moving the C source to source/scs was. I will look at the quoted
example.
…On Thu, Jan 30, 2020, 7:56 PM Benjamin Hipple ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In pkgs/development/python-modules/scs/default.nix
<#78897 (comment)>:
> + # check inputs
+, nose
+}:
+
+buildPythonPackage rec {
+ pname = "scs";
+ version = "2.1.1";
+
+ disabled = pythonOlder "3.5";
+
+ src = fetchFromGitHub {
+ owner = "bodono";
+ repo = "scs-python";
+ rev = "f02abdc0e2e0a5851464e30f6766ccdbb19d73f0"; # need to choose commit manually, untagged
+ sha256 = "01ghvyylxql7jvdcwy65wf7y5qykqyqkbysy402zfhgmm9dxizgv";
+ fetchSubmodules = true;
Ihttps://github.com/bodono/scs-python/blob/master/setup.py
If you look at what the upstream src repo and setup.py are doing, it
appears they're shipping the scs C library as a git submodule, then
having python recompile it from scratch.
In the nix distro, we generally prefer to have the C package stand-alone,
then have the python package just link the package as a proper distribution
dependency without vendoring. An example of a package that does this is
pyarrow:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/pyarrow/default.nix
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#78897?email_source=notifications&email_token=ACNZYI3UY24VSDUTC4WZ2A3RANZKLA5CNFSM4KN26G32YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCTXX7SY#pullrequestreview-351240139>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNZYI5HCGHDBXIUM4UDW6DRANZKLANCNFSM4KN26G3Q>
.
|
f8a941d
to
b9808b8
Compare
@GrahamcOfBorg eval |
@bhipple suggested changes made. Please review/approve. |
54adba1
to
b6b185b
Compare
Depends on libraries.science.math.scs. Required by cvxpy -> qiskit-aer. Co-authored-by: bhipple <bhipple@users.noreply.github.com>
b6b185b
to
404163e
Compare
@GrahamcOfBorg build pythonPackages.scs |
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.
Looks much nicer now! Thanks for the help with best practices too, @jonringer.
Motivation for this change
Add dependency for qiskit (cvxpy's dependency).
Python interface for C Splitting Cone Solver. C Package in tree at
lib.science.math.scs
.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)