Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 25 additions & 10 deletions prereqs_mac.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

# homebrew
which -s brew
if [[ $? != 0 ]] ; then
# Install Homebrew
Expand All @@ -9,18 +10,32 @@ else
brew update
fi

# TODO: We want to check if user has python already installed.
# In-case if they have some other version of python installed,
# this will create yet another installation.

# echo "Downloading and installing Python3 using homebrew"
# brew install python3
# python 3
echo "Checking for python3 installation"
if command -v python3 &>/dev/null; then
echo "Python 3 already installed"
else
echo "Downloading and installing Python3 using homebrew"
brew install python3
fi

# checking for bazel
echo "Downloading and installing Bazel using homebrew"
brew tap bazelbuild/tap
brew install bazelbuild/tap/bazel
# bazel
if command -v bazel &>/dev/null; then
echo "Bazel already installed"
else
echo "Downloading and installing Bazel using homebrew"
brew tap bazelbuild/tap
brew install bazelbuild/tap/bazel
fi

# pipenv
echo "Checking for pipenv"
if python3 -c "import pipenv" &> /dev/null; then
echo "pipenv is already installed"
else
echo "installing pipenv"
pip3 install pipenv
fi

# Downloading the Google DP library
git submodule update --init --recursive
Expand Down