[PATCH] Install Python 3.4 in Docker
stephenfinucane at hotmail.com
Tue Aug 30 09:46:43 AEST 2016
On 26 Aug 16:55, Daniel Axtens wrote:
> Currently, we tox test against Python 3.4. Python 3.4 is included
> with Ubuntu 14.04, which is supported for several years to come,
> so we want to keep supporting it.
> However, Python 3.4 isn't included with Ubuntu 16.04, which is
> what the Docker image is based on.
> We could downgrade the container to 14.04, but then we'd struggle
> to get Python 3.5 into the container. Python 3.5 is the most
> recent in the Python 3 series, so we should also be supporting it.
> Add the apt sources for Trusty and pull in Python 3.4 from there.
> Signed-off-by: Daniel Axtens <dja at axtens.net>
I need to test this, but it looks good. Just to confirm, the aim is to
get both Python 3.4 and 3.5 on the system, correct?
> This is a bit hacky, but I can't think of anything much better.
> If I downgrade to 14.04, you'd need to go through something similar
> for 3.5. We could download and build from source, but that seems
> even worse.
No, this is definitely the best approach. I'd be curious to know how
Travis and the likes do this.
More information about the Patchwork