-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmacos_ds.sh
52 lines (45 loc) · 2.12 KB
/
macos_ds.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
echo -e "\nWELCOME TO HYPERIONDEV'S DATA SCIENCE BOOTCAMP DEVELOPMENT ENVIRONMENT SETUP SCRIPT\n"
echo "Please ignore any errors concerning tools already installed"
echo "Please note that characters won't be displayed in the terminal as you enter your password when prompted for security purposes"
echo "Press Enter/Return and enter your Mac password whenever prompted to allow installation to proceed"
# Only run if the tools are not installed yet
# To check that try to print the SDK path
xcode-select -p &> /dev/null
if [ $? -ne 0 ]; then
echo "Command Line Tools for Xcode not found. Installing from softwareupdate…"
# This temporary file prompts the 'softwareupdate' utility to list the Command Line Tools
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress;
PROD=$(softwareupdate -l | grep "\*.*Command Line" | tail -n 1 | sed 's/^[^C]* //')
softwareupdate -i "$PROD" --quiet;
else
echo "Command Line Tools for Xcode have been installed"
fi
# Install Homebrew
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "Homebrew has been installed"
# Install Git
brew install git
echo "Git has been installed"
# Install non-system Python
brew install python
echo "alias python='python3'" >> ~/.zprofile
echo "alias py='python3'" >> ~/.zprofile
echo "Python has been installed"
# Install all Python packages
mkdir pysetup
cd pysetup
curl https://raw.githubusercontent.com/HyperionDevBootcamps/HyperionDev-Data-Science-Development-Environment-Setup/master/requirements.txt > requirements.txt
python3 -m pip install --user --upgrade pip
python3 -m pip install --user -r requirements.txt
cd ..
rm -rf pysetup
python3 -m spacy download en_core_web_sm
python3 -m spacy download en_core_web_md
echo "All the your Python packages are set up"
# Install Visual Studio Code
brew install --cask visual-studio-code
code --install-extension ms-python.python --force
code --install-extension ms-toolsai.jupyter --force
echo "Visual Studio Code has been installed"
echo "All the software needed for your bootcamp are installed"
echo "Submit a query via your HyperionDev dashboard if you run into any issues"