From 690fa965f9f1bca536b7cdc840508d54fd35313e Mon Sep 17 00:00:00 2001 From: Yifei Feng Date: Wed, 11 Mar 2020 16:32:28 -0700 Subject: [PATCH] Make python3.6 the default python version for custom op Dockerfile. We no longer publish 2.7 pip packages. PiperOrigin-RevId: 300432764 Change-Id: I389e7a9eedc7656dbed63c21b6119b53e2a916e3 --- tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16 | 3 +++ .../tools/ci_build/Dockerfile.custom_op_ubuntu_16_cuda10.0 | 3 +++ .../tools/ci_build/Dockerfile.custom_op_ubuntu_16_cuda10.1 | 3 +++ 3 files changed, 9 insertions(+) diff --git a/tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16 b/tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16 index 3f72aea8862..c540d03df7f 100644 --- a/tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16 +++ b/tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16 @@ -69,6 +69,9 @@ RUN wget https://bootstrap.pypa.io/get-pip.py && python3.5 get-pip.py && rm get- RUN /install/install_pip_packages.sh RUN /install/install_auditwheel.sh +# Make python3.6 the default python version +RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.6 0 + # Install given tensorflow or tf-nightly version, if not specified, install the # latest official release ARG TF_PACKAGE=tensorflow ARG TF_PACKAGE_VERSION= diff --git a/tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16_cuda10.0 b/tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16_cuda10.0 index 38f867ae3e9..1a1200095b1 100644 --- a/tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16_cuda10.0 +++ b/tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16_cuda10.0 @@ -69,6 +69,9 @@ RUN wget https://bootstrap.pypa.io/get-pip.py && python3.5 get-pip.py && rm get- RUN /install/install_pip_packages.sh RUN /install/install_auditwheel.sh +# Make python3.6 the default python version +RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.6 0 + # Install given tensorflow or tf-nightly version, if not specified, install the # latest official release ARG TF_PACKAGE=tensorflow ARG TF_PACKAGE_VERSION= diff --git a/tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16_cuda10.1 b/tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16_cuda10.1 index 885b1b16886..01f34365ff2 100644 --- a/tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16_cuda10.1 +++ b/tensorflow/tools/ci_build/Dockerfile.custom_op_ubuntu_16_cuda10.1 @@ -71,6 +71,9 @@ RUN wget https://bootstrap.pypa.io/get-pip.py && python3.5 get-pip.py && rm get- RUN /install/install_pip_packages.sh RUN /install/install_auditwheel.sh +# Make python3.6 the default python version +RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.6 0 + # Install given tensorflow or tf-nightly version, if not specified, install the # latest official release ARG TF_PACKAGE=tensorflow ARG TF_PACKAGE_VERSION=