-
-
Notifications
You must be signed in to change notification settings - Fork 17.8k
anki: move python libraries into 'lib' output #438958
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
eyJhb
left a comment
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.
I've tested these changes, and they resolve the issues I had. Confirmed that Anki still works as well :)
I'm not that much into how $out vs. $lib, so I can't comment on that sadly. But I really appreciate the fast response ❤️
eljamm
left a comment
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 good aside from the small nit.
Fixes NixOS#438598 Anki's packaging got reworked in NixOS#425219, and one of the changes was to effectively 'pip install' the anki wheel into $out directly. This resulted in an output structure of '$out/bin' and '$out/lib', with python files in 'lib'. Per NixOS#438598, this can cause conflicts. Let's split anki into `anki.out` and `anki.lib`, requiring a user to specifically include `anki.lib` in their environment in order to hit the python conflicts described there. This seems like the easiest solution, though I'm of course open to any better alternatives.
8478a82 to
f955f2c
Compare
eljamm
left a comment
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.
nixpkgs-review result
Generated using nixpkgs-review-gha
Command: nixpkgs-review pr 438958
Commit: f955f2ce5e400bcccfc506c0bc7e6662567dd4f1 (subsequent changes)
Merge: 99cf65bb19aa9eb018070168f23e190df2d138e3
Logs: https://github.com/eljamm/nixpkgs-review-gha/actions/runs/17626292759
x86_64-linux
✅ 8 packages built:
- anki
- anki.doc
- anki.lib
- anki.man
- ki
- ki.dist
- mnemosyne
- mnemosyne.dist
aarch64-linux
✅ 8 packages built:
- anki
- anki.doc
- anki.lib
- anki.man
- ki
- ki.dist
- mnemosyne
- mnemosyne.dist
x86_64-darwin
✅ No rebuilds
aarch64-darwin
✅ No rebuilds
Fixes #438598
Anki's packaging got reworked in
#425219, and one of the changes was to effectively 'pip install' the wheels for anki and its dependencies into $out directly.
This resulted in an output structure of '$out/bin' and '$out/lib', with python files in 'lib'.
Per #438598, this can cause conflicts.
Let's split anki into
anki.outandanki.lib, requiring a user to specifically includeanki.libin their environment in order to hit the python conflicts described there.This seems like the easiest solution, though I'm of course open to any better alternatives.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.