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
doc python: advise against withPackages #24537
Conversation
@orivej, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh, @alexeymuranov and @bennofs to be potential reviewers. |
You can use it in |
Perhaps a better solution would be to fix |
Do you mean that it is fine to use with Python 3 and it should not be used only with Python 2?
They may not be identical. For example,
and
|
@orivej All other situations work fine. |
f6c03d8
to
93aaaf7
Compare
@FRidh yes that is why I was suggesting to ignore them only in the case of identical contents. But turns out that this is not enough for namespace packages, so I guess this can't really be fixed. This is a deficit in the python 2 packaging approach, it is good that nix gives an error here and does not blindly allow a package to override the files of another package. It is similar to a merge conflict: there is sometimes no automatic solution to it, manual intervention is required. |
Thanks, I updated this pull request. Usually file collisions indicate packaging problems, but with Python 2 |
@FRidh can we perhaps detect namespace packages and strip comments from For the remaining namespace packages not detected by this, we could fix up the |
@FRidh is the documentation good to go? |
I've just pushed 8d491ec |
This clarifies why use of
withPackages
is limited to other packages at best, and that it definitely should not be used inconfiguration.nix
. Discovered in #24517.