Skip to content

Commit

Permalink
removing shellcheck installer call since i removed the installer meth…
Browse files Browse the repository at this point in the history
…od; removing virtualenvwrapper to use project-local virtualenvs; fix for #8.
  • Loading branch information
Chris Cuming committed May 2, 2017
1 parent 18b2db3 commit 0e297e8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
4 changes: 0 additions & 4 deletions .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ if [[ $(uname) == "Darwin" ]]; then
# NVM (https://github.com/creationix/nvm#installation).
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

# Initialize virtualenv.
export WORKON_HOME=~/.envs
source /usr/local/bin/virtualenvwrapper.sh
fi

# Link to personal scripts.
Expand Down
1 change: 0 additions & 1 deletion bootstrap/mac_os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ install_homebrew() {
bootstrap_mac_os() {
copy_fonts_mac
install_homebrew
install_shellcheck
bootstrap_node
bootstrap_python
}
21 changes: 9 additions & 12 deletions bootstrap/python.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash


declare -a PYPI=("virtualenv" "virtualenvwrapper" "pep8")

install_python() {
echo "...checking python install..."
if brew list | grep python > /dev/null 2>&1; then
Expand All @@ -11,19 +9,18 @@ install_python() {
brew install python
echo "...installed python via homebrew..."
fi
for package in "${PYPI[@]}"; do
install_pypi "$package"
done
}

install_pypi() {
echo "...checking $1 install..."
if type "$1" > /dev/null 2>&1; then
echo "......$1 already installed"
else
source "$HOME/.bash_profile" && pip install "$1"
echo "...installed $1..."
fi
for package in virtualenv pep8; do
echo "...checking $package install..."
if type "$package" > /dev/null 2>&1; then
echo "......$package already installed"
else
source "$HOME/.bash_profile" && pip install -U "$package"
echo "...installed $1..."
fi
done
}

bootstrap_python() {
Expand Down

0 comments on commit 0e297e8

Please sign in to comment.