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
gwyddion: 2.48 -> 2.55 (and add options) #83114
Conversation
@P-E-Meunier, it looks like by some coincidence you were actually the original author of this derivation? |
Yes, when I noticed you hadn't done it yet ;-) |
Adding an install phase takes care of your problem with the python path: ~
But I can't get the python module to work, I keep getting an error: "could not import gtk". I don't understand where the python files are installed, do you? |
That sounds like a dependency problem with its dependency on pygtk. It works for me, but I need to use something like the following: I'm primarily testing this in Python, not in the embedded console, as my primary use-case is scripting for consistent batch levelling and conversion, but it looks like the embedded console is also working for me. |
That is what |
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.
please squash the fixup commits:
git reset HEAD^^
git add pkgs
git commit --amend --no-edit
git push ... ... --force
Gwyddion has a large number of optional dependencies. In this update, those dependencies have been added with options set mostly to true, and an option (default false) for working Python 2.7 support in the program and in Python has been added. I have also added myself as a maintainer as no maintainer is currently set.
Done. Wasn't sure whether I should squash immediately, or leave the fixups there to show them for review before squashing. |
@P-E-Meunier, does this work for you now, at least with In theory, this should build on macOS; maybe Damien could test it? The python API is enormously useful for consistent mass conversion of AFM images. |
I does work, and TIL it's actually how Python packages are meant to be used: https://nixos.org/nixpkgs/manual/#installing-python-and-packages About OSX, I don't know how pygtk works there. |
|
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.
diff LGTM
commits LGTM
https://github.com/NixOS/nixpkgs/pull/83114
2 package built:
gwyddion python27Packages.gwyddion
congrats to @cgevans on his first PR :)
I didn't know it was @cgevans' first PR. Congrats! Now I can't wait to meet the third user of Gwyddion in Nixpkgs. |
Motivation for this change
Gwyddion has a large number of optional dependencies. In this update, those dependencies have been added with options set mostly to true, and an option (default false) for working Python 2.7 support in the program and in Python (but without the gwyutils module) has been added. I have also added myself as a maintainer as no maintainer is currently set.
Upstream has made the gwyutils module intentionally hard to use by placing it outside the Python path, and I'm not sure the best way to fix this, or whether it should be fixed. I have also not added options for ruby and perl support, as I don't know how that support works (it isn't listed in the configuration summary).
Things done
sandbox
innix.conf
on non-NixOS linux)(Tested both gwyddion (and confirmed no Python support) and python27Packages.gwyddion (and confirmed Python support))
nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)