Skip to content

python3Packages.ovito: 3.0.0 -> 3.3.1#102250

Merged
jonringer merged 1 commit intoNixOS:masterfrom
prusnak:ovito
Nov 1, 2020
Merged

python3Packages.ovito: 3.0.0 -> 3.3.1#102250
jonringer merged 1 commit intoNixOS:masterfrom
prusnak:ovito

Conversation

@prusnak
Copy link
Member

@prusnak prusnak commented Oct 31, 2020

Motivation for this change

Version update, convert to Python 3 (part of #101964), fix build

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.

@ofborg ofborg bot added 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Oct 31, 2020
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.

I would much rather have the python interpreter parameterized

in all-packages, i would would just do python = python3;

@jonringer
Copy link
Contributor

do you mind squashing?

Please follow CONTRIBUTING.md and manual#submitting-changes-making-patches and squash the fix-up commits.

This can be done without git rebase -i by doing:

git reset HEAD~1                    # move fix-up commits into unstaged
git add -- pkgs/                    # move changes into staged
git commit --amend --no-edit        # add changes to previous commit
git push ... ... --force            # modify current PR branch

However, git rebase -i is a more powerful alternative, I created a small video demonstrating it's use here. A more indepth text tutorial can be found here

@prusnak
Copy link
Member Author

prusnak commented Nov 1, 2020

do you mind squashing?

I am squashing it at the moment. Easiest thing how to accept your suggestions in my local branch is to accept them via Github UI into remote branch and then update my local branch.

@prusnak
Copy link
Member Author

prusnak commented Nov 1, 2020

in all-packages, i would would just do python = python3;

What do you mean by this? This changeset does not touch all-packages ...

I guess you meant this, right? (in pkgs/top-level/python-packages.nix - included in 574c7d9)

-  ovito = toPythonModule (pkgs.libsForQt5.callPackage ../development/python-modules/ovito { });
+  ovito = toPythonModule (pkgs.libsForQt5.callPackage ../development/python-modules/ovito { inherit python; });

@jonringer
Copy link
Contributor

sorry, for some reason I thought there was a top-level ovito

@jonringer
Copy link
Contributor

oh in the original list, it just shows ovito, but that's likely because it's just taking the derivation name.

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.

LGTM

Result of nixpkgs-review pr 102250 1

3 packages built:
  • python27Packages.ovito
  • python37Packages.ovito
  • python38Packages.ovito

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants