Skip to content

Commit

Permalink
Update buck_setup.sh (pytorch#80116)
Browse files Browse the repository at this point in the history
Remove destination folders if they already exist. Otherwise the copy step will fail. It happens if people tried to run this script several times.

Pull Request resolved: pytorch#80116
Approved by: https://github.com/kit1980
  • Loading branch information
linbinyu authored and pytorchmergebot committed Jun 23, 2022
1 parent 9cbc692 commit 3507bee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/buck_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ python3 generate-xnnpack-wrappers.py
# bazel-skylib
printf "\n[Downloading bazel-skylib-1.0.2]\n"
curl -L -o /tmp/bazel-skylib-1.0.2.tar.gz https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz
rm -rf bazel-skylib/
mkdir bazel-skylib
tar -xf /tmp/bazel-skylib-1.0.2.tar.gz -C bazel-skylib/

# glog
printf "\n[Downloading glog-0.4.0]\n"
curl -L -o /tmp/glog-0.4.0.tar.gz https://github.com/google/glog/archive/v0.4.0.tar.gz
tar -xf /tmp/glog-0.4.0.tar.gz -C /tmp/
rm -rf glog/
mv /tmp/glog-0.4.0/ glog/

# ruy
printf "\n[Downloading ruy]\n"
curl -L -o /tmp/ruy.zip https://github.com/google/ruy/archive/a09683b8da7164b9c5704f88aef2dc65aa583e5d.zip
unzip -q /tmp/ruy.zip -d /tmp/
rm -rf ruy/
mv /tmp/ruy-a09683b8da7164b9c5704f88aef2dc65aa583e5d ruy/

0 comments on commit 3507bee

Please sign in to comment.