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

yoda: provide python3Packages.yoda #77642

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.

@@ -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.

pkgs/development/libraries/physics/yoda/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/physics/yoda/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/physics/yoda/default.nix Outdated Show resolved Hide resolved
pkgs/top-level/python-packages.nix Outdated Show resolved Hide resolved
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants