From abed8c29b2c5ddac5c90a065f1274689af19c6f6 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Thu, 21 Feb 2019 16:48:30 +1100 Subject: [PATCH] Add a Brewfile for macOS dependencies. Fixes #218. --- local/Brewfile | 8 ++++++++ local/install_deps_macos.bash | 21 +-------------------- 2 files changed, 9 insertions(+), 20 deletions(-) create mode 100644 local/Brewfile diff --git a/local/Brewfile b/local/Brewfile new file mode 100644 index 0000000000..11e64d3043 --- /dev/null +++ b/local/Brewfile @@ -0,0 +1,8 @@ +tap "bazelbuild/tap", pin: true +brew "bazel" +brew "golang" +brew "node" +brew "nodeenv" +brew "pkill" +brew "python@2" +brew "xz" diff --git a/local/install_deps_macos.bash b/local/install_deps_macos.bash index 0b20ec47ce..dfbc12e3e2 100755 --- a/local/install_deps_macos.bash +++ b/local/install_deps_macos.bash @@ -19,26 +19,7 @@ if ! which brew > /dev/null 2>&1; then exit 1 fi -bazel_tap="bazelbuild/tap" - -if ! brew tap | grep $bazel_tap > /dev/null 2>&1; then - brew tap $bazel_tap -fi - -if ! brew tap --list-pinned | grep $bazel_tap > /dev/null 2>&1; then - brew tap-pin $bazel_tap -fi - -brew install \ - bazel \ - golang \ - node \ - nodeenv \ - npm \ - pkill \ - python@2 \ - xz - +brew bundle --file=$(dirname "$0")/Brewfile pip install virtualenv # Setup virtualenv.