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
Python 3 restore alternatives #25583
Conversation
You can drop |
what, what's the point of this? why ship alternatives if we've deprecated python 2 anyway? |
Because it causes needless conflicts for users who still have the py2 packages installed. Those packages still define alternatives with symlinks that conflict with the scripts in the py3 packages. It's either we carry forward the alternatives, or we add empty transitional packages for the py2 packages to eliminate the alternatives and, thus, the conflict. |
either have the users remove the py2 packages (by making the py3 packages conflict) or make transitional packages, the alternatives system is terribly bug prone and carrying alternatives for things is both pointless and potentially dangerous |
Conflicts are the current behavior, but that seems suboptimal. I'm OK with transitional py2 packages but others may have an argument against that. Note that these alternatives already existed in the unified py2/py3 packages, they are just being restored in the standalone py3 packages that were split off. |
yes, i know they existed, and they were always a bad idea, so i see no reason to go back to them we've always been doing transitional packages for removals, and for a good reason, leaving them behind just creates a huge mess (especially considering the repos are never cleaned, so old packages just linger); we've stopped when @Chocimier started loudly objecting against it, and IMO the situation now is worse than it was before, and noone else really ever objected as far as I can recall - I still think doing them at very least in pain-prone situations is better than not, considering xbps has no facilities for resolving this |
I am not much again transitional packages, where packages they pull are viable, compatible replacements for removed ones. That's true that xbps have no ability to make removal explicit, so let's add it. I am slowly working towards it since over year, thinking exactly about python2 drop back then. "Xbps can't" shouldn't be eternal excuse for disrupting user's work. |
In my opinion, we should either be clear that python2 version is unsupported, users that want those python2 need to install them explicitly (via pip), so that's reason of However, it's disruptive and makes users' life harder (to upgrade), thus this PR. |
@Chocimier i don't disagree that this is a non-ideal situation, but we probably shouldn't be doing stuff that actually creates a bigger mess while xbps still doesn't have any solution for this also, i don't think the argument holds for python2 packages either way; python2 is on its way out, and arguing with "disrupting users' workflows" is pointless since sooner or later these packages will create conflicts with other stuff in the system (well, they already are, which is the point of this PR in the first place) @sgn if you want to make this smoother, just provide transitional packages to python3 variants, but i think keeping the conflicts is fine, it requires manual intervention from the user but also is relatively obvious |
I don't really like the transitional packages for this case, provides a fake update to remove things is not nice, and
This was my line of thinking when I added the conflicts. I strongly prefer to keep the conflicts (since without |
So for this PR I'm fine with For future, i would propose not to remove packages unless absolutely necessary before xbps can tell to user that package will be uninstalled. |
Look like there're people support conflicts. I'm closing this PR. |
No description provided.