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

Make python default to python3 (T10229) #271

Open
celticmagic opened this issue Aug 16, 2023 · 2 comments
Open

Make python default to python3 (T10229) #271

celticmagic opened this issue Aug 16, 2023 · 2 comments
Labels
Chore Not a feature or a bug
Milestone

Comments

@celticmagic
Copy link
Collaborator

Fabio (#livingsilver94), 2022-04-09 09:18:21 UTC

The time has come, Python2 should RIP in its grave, leaving its heritage to Python3. Users in 2022 probably expects that too: calling python should start the third version of the REPL/engine.

I realize our tooling still relies on python 2, but I think we should put a #! /usr/bin/env python2 line on top of these source files.

@celticmagic
Copy link
Collaborator Author

Beatrice T. Meyers (#DataDrake), 2022-04-20 17:04:47 UTC

So, we've had this discussion more than a few times. PEP 394 was written specifically to address this issue a decade ago. Since then, tools like pyenv and virtualenv have become the gold standard for separating a development environment from the system python. Anyone not using them, should be, and anyone who is already won't be affected.

Having had time to read the PEP and to think this over, I honestly think that the practice of having a /usr/bin/python symlink as part of the system python is outmoded and should be actively discouraged. We have ~30-40 packages that still rely on python2. Thanks to the excellent push by #algent to move them to python3 or deprecate them entirely, we are getting very close to the day where only the Solus tooling needs python2. Once that is achieved, I think we should be at a point where all of the Solus scripts have been replaced by Go or python3 and that only eopkg and solus-sc will still be python2. I would hope by then that we've updated them to run without calling python.

@celticmagic
Copy link
Collaborator Author

Rune Morling (@ermo), 2023-08-11 12:09:20 UTC

@algent-al

Any chance you could come up with a list of Python 2 packages with a shebang line of either #!/usr/bin/env python or #!/usr/bin/python and create a list of things we need to fix before the present task can be closed?

@davidjharder davidjharder added the Chore Not a feature or a bug label Sep 9, 2023
joebonrichie pushed a commit that referenced this issue Jan 25, 2024
@ermo ermo removed the Software label Jan 29, 2024
@ermo ermo added this to the Solus 4.8 milestone May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chore Not a feature or a bug
Projects
Status: Triage
Development

No branches or pull requests

3 participants