[PATCH] Install Python 3.4 in Docker

Daniel Axtens dja at axtens.net
Tue Aug 30 10:50:10 AEST 2016


Stephen Finucane <stephenfinucane at hotmail.com> writes:

> 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?

Yes, that's right. I can tweak the commit message if you like.

>
> Stephen
>
>> ---
>> 
>> 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.

I sadly know more than I would like about how Travis works.
Basically they keep a big bundle of pre-built Pythons on S3 and use
pyenv (think rbenv but for python) to install them and set them up. We
could look into that I guess - but I'm not a big fan: I think unless we
are wanting to test against a much greater range of versions we don't
need the complexity yet.

Regards,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 859 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/patchwork/attachments/20160830/0a1dd0fc/attachment.sig>


More information about the Patchwork mailing list