Skip to content

Commit 2b5a437

Browse files
authored
Update buildbot_init.sh to clone ml-compiler-opt (#536)
After #535, it's easier to just clone the repo to install the dependencies.
1 parent 8220c3e commit 2b5a437

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

buildbot/buildbot_init.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,16 @@ else
117117
echo "NOT building TFLite - this is a release only bot."
118118
fi
119119

120-
wget --quiet https://raw.githubusercontent.com/google/ml-compiler-opt/main/Pipfile \
121-
|| on_error "failed to get Pipfile"
122-
wget --quiet https://raw.githubusercontent.com/google/ml-compiler-opt/main/Pipfile.lock \
123-
|| on_error "failed to get Pipfile.lock"
120+
sudo -u buildbot git clone https://github.com/google/ml-compiler-opt || on_error "failed to clone ml-compiler-opt repo"
121+
pushd ml-compiler-opt
124122

125-
# install the tf pip package for the AOT ("release" scenario).
123+
# install the tf pip package for the AOT ("release" scenario) and for test model builds.
126124
sudo -u buildbot python3 -m pip install --break-system-packages pipenv
127125
echo installed pipenv
128126
sudo -u buildbot python3 versioned_pipenv sync --extra-pip-args="--break-system-packages" --categories "packages dev-packages" --system
129127
echo used pipenv
128+
popd
129+
130130
python3 -m pip install --break-system-packages buildbot-worker==2.9.0
131131
echo installed buildbot worker
132132

versioned_pipenv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ print(f"using lockfile {versioned_lockfile}")
1313
print(f"args: {my_args}")
1414

1515
shutil.copy(versioned_lockfile, lockfile)
16-
subprocess.check_call(["pipenv"] + my_args)
16+
subprocess.check_call([sys.executable, "-m", "pipenv"] + my_args)

0 commit comments

Comments
 (0)