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 it easy to switch to python2 in edk2 containers #442

Open
AtomicFS opened this issue Nov 28, 2024 · 1 comment
Open

make it easy to switch to python2 in edk2 containers #442

AtomicFS opened this issue Nov 28, 2024 · 1 comment
Labels
docker docker related feature New feature or request python Pull requests that update Python code quality_of_life Improve usage

Comments

@AtomicFS
Copy link
Collaborator

I find myself often need to switch to python2 in older edk2 containers, but we can't just carper-change all of them. So either let's add new containers with python2 as default, or make it easy to switch (like a script for example).

@AtomicFS AtomicFS added feature New feature or request docker docker related python Pull requests that update Python code quality_of_life Improve usage labels Nov 28, 2024
@AtomicFS
Copy link
Collaborator Author

AtomicFS commented Nov 28, 2024

@MDr164 what do you think? Should we double the number of edk2 containers, or just make some switch script equivalent to:

apt remove -y python-is-python3
update-alternatives --remove python /usr/bin/python3
update-alternatives --install /usr/local/bin/python python /usr/bin/python2 100

We could also do this, but apt update would slow it down:

apt update
apt remove -y python-is-python3
apt install -y python-is-python2
update-alternatives --remove python /usr/bin/python3
update-alternatives --install /usr/local/bin/python python /usr/bin/python2 100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker docker related feature New feature or request python Pull requests that update Python code quality_of_life Improve usage
Projects
None yet
Development

No branches or pull requests

1 participant