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

Migrate to Python 3 #39

Closed
wants to merge 1 commit into from
Closed

Migrate to Python 3 #39

wants to merge 1 commit into from

Conversation

smola
Copy link
Contributor

@smola smola commented Mar 17, 2014

Ubuntu Trusty ships Python 3 by default, but not Python 2. Older versions already ship Python 3, so this change should be safe.

Ubuntu Trusty ships Python 3 by default, but not Python 2. Older versions already ship Python 3, so this change should be safe.
@FooBarWidget
Copy link
Member

Wow, I'm surprised my_init didn't need any changes. I thought porting to Python 3 would take more time than just changing the shebang.

@smola
Copy link
Contributor Author

smola commented Mar 17, 2014

Note that I haven't tested it that much yet. Just checked that it starts without errors.

@FooBarWidget
Copy link
Member

Trusty isn't out yet, and Precise does not install Python 3 by default, so I'm putting this pull request on hold for now.

@jakedt
Copy link

jakedt commented Apr 28, 2014

I am using the released version of 14.04 and they have not migrated to Python 3 by default. I am still looking forward to a baseimage based on 14.04 asap since the versions of so many critical libraries have been updated quite a bit in the last two years. I personally need the newer python 2.7.6 and a newer version of phantomjs.

@kingdonb
Copy link
Collaborator

I have been using trusty for more than the last month in baseimage-docker and have found that this patch, as well as setuser with the same patch re: importing posixfile are pretty good. The only other thing that was needed, also was needed for saucy, --default-modules is no longer needed/appropriate on newer versions of syslog-ng.

You can check out my patches on branch baseimage-docker/saucy and the follow-up branch baseimage-docker/trusty which were cleanly rebased yesterday (but unfortunately have other changes not intended for a pull request). Now that there are upstream ubuntu:14.04 images tagged in docker, this can become a priority.

NB: I haven't tested the saucy branch, and if it's true that python3 is not installed by default, it probably won't work. But those changes are all good for trusty.

This is the change for image/setuser

@mpeterson mpeterson mentioned this pull request May 10, 2014
@mpeterson
Copy link
Contributor

This one has been included on #71

@FooBarWidget
Copy link
Member

Let's move to PR #71.

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

Successfully merging this pull request may close these issues.

5 participants