-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Debundled appdirs support #7784
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
Comments
Duplicate to #7690. The fix will be included in the next pip release. Sorry for the inconvinience! |
Ah, I see, sorry for messing up. I think whether you want to patch appdirs depends on what you want. Most of pip’s patches are for cross-platform compatibility (the changes are documented in the patch file). IIRC the only patch relevant to Arch are
|
I do not understand how you can violate your contract to not modify vendored projects willy-nilly like this. At the very least, if you think that As for /etc vs. /etc/xdg, it seems you disagree with the intended behavior of appdirs, so you are modifying the user-facing behavior. If that's so important, you'd think the appdirs developers might be interested in discussing it as well. :/ Both of these changes explicitly violate the directive in https://github.com/pypa/pip/blob/master/src/pip/_vendor/README.rst, and furthermore (or perhaps because they violate the directive?) they are not described in the section "Modifications". |
To add some context, the The "retrofit" vendoring happened in pip 20 to fix this special case but patches were needed to make it transparent for pip users and unfortunately in the process the vendoring directives were forgotten. Ideally those patches should indeed be either upstreamed or included instead in pip wrapping code https://github.com/pypa/pip/blob/master/src/pip/_internal/utils/appdirs.py. Concerning |
The XDG_CONFIG_DIRS change looks to be exactly what's needed, thanks. Would have been nice to see that happen years ago, but hmm, better late than never. As for the rest... Perhaps someone familiar with why pip needs them, could open an issue to discuss each modification with upstream? |
Fixed in #7690. |
Ah, no, I misread. |
The exact patch that pip makes to the vendored appdirs today, can be found at https://github.com/pypa/pip/blob/main/tools/vendoring/patches/appdirs.patch. We're going to be moving away from apprdirs, to platformdirs -- which is a better maintained fork of the project now. Consolidating this into #10178, since I don't think this would be relevant once that is done. |
Environment
Description
Looks like after #7501 merged the vendored copy of appdirs is no longer behaving identically as the upstream one. The tests are failing after debundling appdirs.
I would like to know if debundled appdirs must be patched or are the test failures ignorable?
The text was updated successfully, but these errors were encountered: