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

hydra-eval-faliures: Print Dependency failures as well as direct failures and update to Python3 #29760

Merged
merged 3 commits into from Apr 21, 2018

Conversation

berdario
Copy link
Contributor

Motivation for this change

some packages fail due to non-exposed dependencies and would thus not appear in the list, for example gcj

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • 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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

…thon3

some package fail due to non-exposed dependencies and would thus not appear in the list, for example gcj
@mention-bot
Copy link

@berdario, thanks for your PR! By analyzing the history of the files in this pull request, we identified @domenkozar, @globin and @butterflya to be potential reviewers.

@@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i python -p pythonFull pythonPackages.requests pythonPackages.pyquery pythonPackages.click
#!nix-shell -i python3 -p python3Full python3Packages.requests python3Packages.pyquery python3Packages.click
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python3.withPackages(ps: with ps; [ requests pyquery click ])

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

???

The closest I've been able to get to what you suggest is

nix-shell -E 'with import <nixpkgs> {}; [(python3.withPackages(ps: with ps; [ requests pyquery click ])) python3Full]'

but that fails with "a single derivation is required"

it seems that it should be possible to do

nix-shell -p 'python35.withPackages(ps: with ps; [ numpy toolz ])'

but the documentation is wrong, since I get this error:

undefined variable ‘python35’ at (string):1:1

(same with python36)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FRidh done

@FRidh
Copy link
Member

FRidh commented Oct 7, 2017

This needs to be rebased. There shouldn't be any merge commit.

@FRidh
Copy link
Member

FRidh commented Oct 7, 2017

Other than that it looks good to me.

@berdario berdario mentioned this pull request Oct 12, 2017
@matthewbauer matthewbauer merged commit 595efb9 into NixOS:master Apr 21, 2018
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

4 participants