From 57159001dca9c8e320feb7908c86683ef354411e Mon Sep 17 00:00:00 2001 From: Jason Furmanek Date: Mon, 18 Dec 2023 23:20:27 +0000 Subject: [PATCH] Dont install dev requirements in runtime mode --- .../tools/tf_sig_build_dockerfiles/setup.python.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tensorflow/tools/tf_sig_build_dockerfiles/setup.python.sh b/tensorflow/tools/tf_sig_build_dockerfiles/setup.python.sh index c38153a29e4647..6d45dbacd86e6a 100755 --- a/tensorflow/tools/tf_sig_build_dockerfiles/setup.python.sh +++ b/tensorflow/tools/tf_sig_build_dockerfiles/setup.python.sh @@ -99,5 +99,10 @@ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py python3 -m pip install --no-cache-dir --upgrade pip -# Disable the cache dir to save image space, and install packages -python3 -m pip install --no-cache-dir -r $REQUIREMENTS -U +if [[ $3 ]]; then + echo "Runtime mode" +else + echo "Install Requirements" + # Disable the cache dir to save image space, and install packages + python3 -m pip install --no-cache-dir -r $REQUIREMENTS -U +fi