Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tools/ci_testing/addons_cpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ if [[ ${PLATFORM} == "darwin" ]]; then
N_JOBS=$(sysctl -n hw.ncpu)
else
N_JOBS=$(grep -c ^processor /proc/cpuinfo)
tools/ci_testing/install_py36.sh # Patch to test on py36
fi


Expand Down
1 change: 1 addition & 0 deletions tools/ci_testing/addons_gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fi

set -x

tools/ci_testing/install_py36.sh # Patch to test on py36
N_JOBS=1 # Must limit GPU testing to single job to prevent OOM error.

echo ""
Expand Down
30 changes: 30 additions & 0 deletions tools/ci_testing/install_py36.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ==============================================================================
# Needed until docker image defaults to at least py35.

set -e -x

curl -sSOL https://bootstrap.pypa.io/get-pip.py
add-apt-repository -y ppa:deadsnakes/ppa

apt-get -y -qq update && apt-get -y -qq install python3.6

python3.6 get-pip.py -q
python3.6 -m pip --version

ln -sfn /usr/bin/python3.6 /usr/bin/python3
pip3 install scipy # Pre-installed in custom-op