-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
doc/python: cleanup examples, references #58160
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
@@ -585,11 +582,6 @@ The `buildPythonPackage` mainly does four things: | |||
environment variable and add dependent libraries to script's `sys.path`. | |||
* In the `installCheck` phase, `${python.interpreter} setup.py test` is ran. | |||
|
|||
As in Perl, dependencies on other Python packages can be specified in the |
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.
This wasn't the best description, and the reference to perl didn't seem right here.
There's also
The `stdenv.mkDerivation` function accepts various parameters for describing build inputs (see "Specifying dependencies"). The following are of special
interest for Python packages
A bit below which is a good explanation with buildPython*
in mind.
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.
Did not check the rendered result but the changes itself seem good to me.
The example didn't use pkgs.
In a followup to this (not completely related) would like to build off of 4bd168e because |
@FRidh @dotlambda Can either of you check off on this? |
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 OK
lol, and I merged with fixup commits 🤣 |
Motivation for this change
1e86c0a let me actually see the examples we had, so I thought that we should improve them further.
This was done fairly quickly, so please tell me if there's something else I should touch.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)