Skip to content

Commit b65c78f

Browse files
authored
Fix TF_PIP variable
1 parent 6cc8451 commit b65c78f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

buildbot/buildbot_init.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ sudo -u buildbot python3 -m pip install --upgrade pip
120120
sudo -u buildbot python3 -m pip install --user -r /tmp/requirements.txt
121121
python3 -m pip install buildbot-worker==2.9.0
122122

123-
TF_PIP=$(sudo -u buildbot python3 -m pip show tensorflow | grep Location | cut -d ' ' -f 2)
123+
TF_PIP=$(sudo -u buildbot python3 -c "import tensorflow as tf; import os; print(os.path.dirname(tf.__file__))")
124124

125125
# temp location until zorg updates
126-
sudo -u buildbot ln -s ${TF_PIP}/../ /var/lib/buildbot/.local/lib/python3.7
126+
sudo -u buildbot ln -s ${TF_PIP}/../../ /var/lib/buildbot/.local/lib/python3.7
127127

128128
# location we want
129-
sudo -u buildbot ln -s ${TF_PIP}/../ /tmp/tf-aot
129+
sudo -u buildbot ln -s ${TF_PIP}/../../ /tmp/tf-aot
130130

131-
export TENSORFLOW_AOT_PATH="${TF_PIP}/tensorflow"
131+
export TENSORFLOW_AOT_PATH="${TF_PIP}"
132132

133133
if [ -d "${TENSORFLOW_AOT_PATH}/xla_aot_runtime_src" ]
134134
then

0 commit comments

Comments
 (0)