Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
patch macos install script
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyabsk committed May 17, 2019
1 parent ede9c2c commit 6b0c33b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/macos.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash
# macos.sh

# make sure system python is currently being used and install pip
export PATH="/usr/bin/python":$PATH
command -v pip >/dev/null 2>&1 || { echo >&2 "Installing pip now"; \
sudo easy_install pip; }

echo Checking for Brew....

# Check if brew is installed and install it if not
Expand Down Expand Up @@ -71,6 +77,19 @@ fi
pyenv shell system
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
pyenv shell --unset

# Add poetry to bash_profile
# Setup poetry
export PATH="$HOME/.poetry/bin:$PATH"
source "$HOME/.poetry/env"
cat >> ~/.bash_profile <<EOF
# Setup poetry
export PATH="$HOME/.poetry/bin:$PATH"
source "$HOME/.poetry/env"
EOF

source ~/.bash_profile

poetry install -v

# Install optional dependencies
Expand Down

0 comments on commit 6b0c33b

Please sign in to comment.