-
Notifications
You must be signed in to change notification settings - Fork 34
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
Update switch_python script to new default python version 3.9 #157
Conversation
if [[ "$NEWV" == "3.9" ]]; then | ||
echo "using default python 3.9" | ||
exit 0 | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How's that useful? Isn't that preventing to ever switch back?
Sure if we used containers like they were designed, we'd just throw it away and create a new one. But if we used containers like they were designed, and not as a drop in replacement for vm's, we wouldn't have this script in the first place.
As long as there are no container images for other python versions (3.10, 3.11, 3.12, ...) this is the only possibility to use a different version right now. |
I guess, that's why we keep the script around for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In any case, this is an improvement over the previous state.
BTW: What happens if you used the oci-env with a python 3.8 container base image? |
Nothing, but you wouldn't be able to specify using python 3.9. |
That's technically a regression. But it's a dev tool and they should be able to handle it. |
With the oci_env now using the new centos9 images, the default python version is now 3.9.
Note We can now publish other python version oci-images, but we haven't done so yet.