-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
setuptoolsCheckPhase: allow providing arguments via setuptoolsCheckFl… #102348
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
@@ -6,7 +6,7 @@ setuptoolsCheckPhase() { | |||
runHook preCheck | |||
|
|||
cp -f @setuppy@ nix_run_setup | |||
@pythonCheckInterpreter@ nix_run_setup test | |||
@pythonCheckInterpreter@ nix_run_setup test "${setuptoolsCheckFlagsArray[@]}" |
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.
@FRidh do we need documentation for this one?
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.
There is a ### Setup hooks
in python.section.md
. Probably good to mention it there.
Change looks good to me, however, note that For 21.03 we need to change Therefore, please avoid relying on this test invocation. |
I have no clue if that works with pyobjc or not. When I tried executing the tests with pytest I got a lot of errors. I could also change my PR to: |
You can keep it, but realize that as soon as we change the default, all these packages will fail to build because no tests are run anymore. Of course we can keep that for until then, if its unclear how to solve it now. |
I try running it manually to avoid the mass rebuild and future deprecation. |
Thanks for the cherry-pick and the quick responses but I decided to avoid the deprecation and mass rebuilding and invoking it manually in checkPhase. This PR can be closed. |
…agsArray
Motivation for this change
cherry-picked from https://github.com/NixOS/nixpkgs/pull/102306/files#diff-78e272fcdca196c9997e1a2da70702ea519a5ebcea9a396bbb7f876750130844
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)