Skip to content

yoda: provide python3Packages.yoda #77642

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

Merged
merged 1 commit into from
Jan 31, 2020

Conversation

veprbl
Copy link
Member

@veprbl veprbl commented Jan 13, 2020

Motivation for this change

To provide yoda bindings for use with python3

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.

Sorry, something went wrong.

@veprbl veprbl force-pushed the pr/yoda_to_pythonpackages branch 2 times, most recently from b63ecd6 to a0746a9 Compare January 14, 2020 04:47
@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 11-100 10.rebuild-linux: 11-100 labels Jan 14, 2020
@@ -24497,7 +24497,9 @@ in

thepeg = callPackage ../development/libraries/physics/thepeg { };

yoda = callPackage ../development/libraries/physics/yoda { };
yoda = callPackage ../development/libraries/physics/yoda {
pythonPackages = python2Packages;
Copy link
Contributor

Choose a reason for hiding this comment

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

python2 is EOL, please use python3Packages if possible

Copy link
Contributor

Choose a reason for hiding this comment

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

using my other suggestions:

Suggested change
pythonPackages = python2Packages;
python = python3;

Copy link
Member Author

Choose a reason for hiding this comment

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

I will be switching yoda to use python3 by default, but that, probably, can not be done until I get rivet version 3 working.

@veprbl veprbl force-pushed the pr/yoda_to_pythonpackages branch from a0746a9 to 74fe916 Compare January 15, 2020 17:56

Verified

This commit was signed with the committer’s verified signature.
jabranham Alex Branham
@veprbl veprbl force-pushed the pr/yoda_to_pythonpackages branch from 74fe916 to db4210c Compare January 15, 2020 17:57
@veprbl
Copy link
Member Author

veprbl commented Jan 15, 2020

@GrahamcOfBorg build python2Packages.yoda python3Packages.yoda

@jonringer jonringer requested a review from FRidh January 16, 2020 07:06
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 looks better to me (improvement, would still like to see python3 eventually)
commit LGTM

https://github.com/NixOS/nixpkgs/pull/77642
10 package built:
fastnlo herwig mcgrid rivet yoda python37Packages.yoda python38Packages.yoda sherpa thepeg yoda-with-root

@jonringer
Copy link
Contributor

@GrahamcOfBorg build fastnlo herwig mcgrid rivet yoda python37Packages.yoda python38Packages.yoda sherpa thepeg yoda-with-root

@veprbl
Copy link
Member Author

veprbl commented Jan 31, 2020

Let's merge this unless there are objections.

@jonringer jonringer merged commit dc57bd8 into NixOS:master Jan 31, 2020
@veprbl veprbl deleted the pr/yoda_to_pythonpackages branch December 1, 2020 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 11-100 10.rebuild-linux: 11-100 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants