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

python3, python2: clean up templates andgg dead alternatives, combine python2 and python2-tkinter #54161

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ahesford
Copy link
Member

The 2to3 script is gone in our python3, making the 2to3 alternative obsolete. The idle alternative in the main python3 package is wrong, because it produces a dead symlink when idle-python3 is not installed.

Rather than split off a new idle alternative that behaves properly, it's better to just make a fixed idle symlink in the idle-python3 package, drop idle from the python alternative in the python2 package, and move on. This means that py2 users will have to use idle2 or idle2.7, but we shouldn't worry about that anymore. It's a dead package that is already marked for "limited use".

At the same time, we don't have to worry about cycles with python2, so we can drop the split package and build the whole thing together.

Eventually, we should drop the alternatives for python2 entirely, but that's a broader scope that I don't want to think about at the moment.

Closes: #54154.

cc: @leahneukirchen

depends="${sourcepkg}-${version}_${revision}"
conflicts="python<3.0.0_1 python2<=2.7.18.11_1 python3<=3.13.1_1"
Copy link
Member

@sgn sgn Feb 2, 2025

Choose a reason for hiding this comment

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

I would put: depends="python>=3.0.0_1 python3>=${version}_${revision}"
conflicts resolution works before version resolution, install them first them is nearly impossible, afaik.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python configures broken symlinks for idle and 2to3
2 participants