Bug 1449629 - Install Python 3.5 in debian-base; r?glandium draft
authorGregory Szorc <gps@mozilla.com>
Thu, 29 Mar 2018 21:04:00 -0700
changeset 775120 0980630d01a7182f9687e1c097c7c9fd114130b0
parent 775119 b3a85356fc1f8fe4086e00bc5d269060be36f1a8
push id104617
push userbmo:gps@mozilla.com
push dateFri, 30 Mar 2018 04:14:53 +0000
reviewersglandium
bugs1449629
milestone61.0a1
Bug 1449629 - Install Python 3.5 in debian-base; r?glandium We want Python 3.5+ to be available everywhere so various processes can start using it. The debian-base Dockerfile is shared by Debian 7 and 9 images. Debian 9 ships with Python 3.5 and after the previous commit, we have a Python 3.5 package for Debian 7. So we simply install the "python3.5" package to get Python on all the Debian images. There /might/ be an issue with the default package declaring a libexpat dependency that conflicts with some 32-bit -dev packages. But the Try push seemed happy and I /think/ we only have a 32-bit variant image based on Debian 7 currently. So this might not be an issue. This does increase the size of the images a bit: deb7-base: 218,155,008 / 79,005,868 -> 246,023,680 / 87,370,182 (That's uncompressed / compressed.) This is a bit unfortunate. But such is the price for having Python 3 I suppose. MozReview-Commit-ID: 9ZmoSxtHWTZ
taskcluster/docker/debian-base/Dockerfile
--- a/taskcluster/docker/debian-base/Dockerfile
+++ b/taskcluster/docker/debian-base/Dockerfile
@@ -49,16 +49,17 @@ COPY cloud-mirror-workaround.sh /usr/loc
 RUN /usr/local/sbin/setup_packages.sh $DOCKER_IMAGE_PACKAGES && \
     echo 'dir::bin::methods::https "/usr/local/sbin/cloud-mirror-workaround.sh";' > /etc/apt/apt.conf.d/99cloud-mirror-workaround && \
     apt-get update && \
     apt-get install \
       git \
       make \
       mercurial \
       python \
+      python3.5 \
       xz-utils
 
 # %include testing/mozharness/external_tools/robustcheckout.py
 COPY topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py
 
 # %include taskcluster/docker/recipes/hgrc
 COPY topsrcdir/taskcluster/docker/recipes/hgrc /etc/mercurial/hgrc.d/mozilla.rc