Commits

Woojong Koh committed ccf737c

Add an option to install.sh for using Anaconda (Continuum Analytics)

* Update all the subrepos

  • Participants
  • Parent commits 72efeb5

Comments (0)

Files changed (4)

 2719a15b779eef0bfb1d11816c25192ae9ee99b9 .dircolors-solarized
 30bdbd5f6173041fa3e8726195dc21f8fd6082ea .hgext/onsub
-a38af27991d15d14ac4ca55c919bb694d7eafb7a .oh-my-zsh
+d485044169c2ac18e9e8e7fe29f7d4d93864168a .oh-my-zsh
 ca0ce8fcc49a09eca7eb8ff8003554de2f250901 .vim/bundle/DirDiff.vim
 06c1e16a4dcfd1b8b1764e96482af4b063ca7c8a .vim/bundle/MatlabFilesEdition
 341785bb1bfec38f62d210e2d01ae79f40028e86 .vim/bundle/OmniCppComplete
 2cbe946206ec622d9d8cf2c99317f204c4d41885 .vim/bundle/a.vim
 b5d3fe66a58a13d2ff8b6391f4387608496a030f .vim/bundle/ctrlp.vim
-f00f6b6cf25bc59e8d789be10228e1ac2ccbf233 .vim/bundle/delimitMate
+35280c1444bf62d651f56ccaf03ad8db29c02383 .vim/bundle/delimitMate
 852ddb0c6590bbc41c508d7f5d2fc17112492def .vim/bundle/grep.vim
 eb9fc8676b8959c3c2c95bf6b6e8f0f44317c5c0 .vim/bundle/gundo.vim
 da44ba4a92eef3860bdee2d96d755a7171889a70 .vim/bundle/neocomplcache.vim
 b0bb781fc73ef40365e4c996a16f04368d64fc9d .vim/bundle/nerdtree
 f5a75d075d3c005ebe69e3f5e56cf99516e8aa3b .vim/bundle/snipmate.vim
 ace45adc51d0e08d45761bb515a9ff23906cba65 .vim/bundle/tagbar
-576d1de716c1e3fff994aa2503ba0339446dca17 .vim/bundle/vim-airline
+7a1801e9c456d0a043167003afc439543538ef3b .vim/bundle/vim-airline
 a761d9f780b7fe29dc7f717d3852d35204147ab5 .vim/bundle/vim-buffergator
 528a59f26d12278698bb946f8fb82a63711eec21 .vim/bundle/vim-colors-solarized
 a3ae0df1d9e13941e9e8086637055841ce93f7bd .vim/bundle/vim-commentary
 16e873b2a4a8421fcbcf9a1b57ee0bbfe6bbe358 .vim/bundle/vim-lawrencium
 1270dceb1fe0ca35f8b292c7b41b45b42c5a0cc1 .vim/bundle/vim-pathogen
 2a3c5f8e3c26a57b8eb4cfc4be79615a1c508ef6 .vim/bundle/vim-repeat
-9e83f243e7d743bb763601f450521f861aa31d33 .vim/bundle/vim-signify
+159b171e4a72ed3c6813ce3c4ed416a9fe040658 .vim/bundle/vim-signify
 15 .vim/bundle/web-indent
 19afd8812fc1ff8558b7223ce9fb19a28d15d2ff tmux-powerline
 typeset -U path
-path=(/Applications/MacVim.app/Contents/MacOS $HOME/bin /opt/local/bin /opt/local/sbin $path /Applications/MATLAB_R2011b.app/bin /Applications/MATLAB_R2011b.app/bin/maci64)
+path=($HOME/anaconda/bin /Applications/MacVim.app/Contents/MacOS $HOME/bin /opt/local/bin /opt/local/sbin $path)
 
 export EDITOR=vim
 export VISUAL=vim
 pip -q install --upgrade boto
 pip -q install --upgrade fabric
 pip -q install --upgrade psutil
+pip -q install --upgrade bokeh
 
 echo * Installing Pyp...
 pip -q install --upgrade pyp
-#!/usr/bin/env bash
+#!/bin/bash
 
-DOTDIR="$( cd -P "$( dirname "$0" )" && pwd )"
+USE_ANACONDA=true
+if [ $USE_ANACONDA ]; then
+    EASY_INSTALL="conda install -q --yes"
+    PIP_INSTALL="conda install -q --yes"
+else
+    EASY_INSTALL="sudo easy_install -q --upgrade"
+    PIP_INSTALL="sudo pip -q install --upgrade"
+fi
+
 
 echo "* Installing dotfiles..."
+DOTDIR="$( cd -P "$( dirname "$0" )" && pwd )"
 pushd "${DOTDIR}" &> /dev/null
 shopt -s dotglob extglob
-for DOTFILE in !(.hg|.hgsub|.hgsubstate|.hgignore|tags|install.sh|install.bat)
+for DOTFILE in !(.DS_Store|.hg|.hgsub|.hgsubstate|.hgignore|tags|install.sh|install.bat)
 do
     echo ${DOTFILE}
     TARGET="${HOME}/${DOTFILE}"
 echo "* Changing a login shell to Zsh..."
 chsh -s /bin/zsh
 
-PIP="sudo pip -q"
 if [ -z "$VIRTUAL_ENV" ]; then
     echo "* Installing distribute and pip..."
-    #wget https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py --no-check-certificate
-    #sudo python ez_setup.py || exit
-    sudo easy_install -q --upgrade setuptools || exit
-    sudo easy_install -q --upgrade pip || exit
-else
-    PIP="pip -q"
+    $EASY_INSTALL setuptools || exit
+    $EASY_INSTALL pip || exit
+elif [ !$USE_ANACONDA ]; then
+    EASY_INSTALL="easy_install -q --upgrade"
+    PIP_INSTALL="pip -q install --upgrade"
 fi
 
 echo "* Installing Mercurial..."
-$PIP install --upgrade mercurial
-$PIP install --upgrade gntp hg-git
-$PIP install --upgrade keyring mercurial_keyring
+$PIP_INSTALL mercurial
+$PIP_INSTALL gntp hg-git
+$PIP_INSTALL keyring mercurial_keyring
 
-echo "* Installing virtualenv..."
-$PIP install --upgrade virtualenv virtualenvwrapper
+if [ !$USE_ANACONDA ]; then
+    echo "* Installing virtualenv..."
+    $PIP_INSTALL virtualenv virtualenvwrapper
+fi
 
 echo "* Installing SCons..."
-sudo easy_install -q --upgrade scons
+$EASY_INSTALL scons
 
 echo "* Installing iPython and numpy/scipy..."
-sudo easy_install -q --upgrade readline
-$PIP install --upgrade ipython ipdb
-$PIP install --upgrade flake8 pylint
-$PIP install --upgrade numpy scipy matplotlib
-$PIP install --upgrade scikit-learn joblib sympy
-$PIP install --upgrade mayavi
-$PIP install --upgrade cvxopt
-$PIP install --upgrade PyOpenGL PyOpenGL_accelerate OpenGLContext
-$PIP install --upgrade Mako PyOpenCL
-$PIP install --upgrade paramiko
-$PIP install --upgrade PIL
-$PIP install --upgrade networkx
-$PIP install --upgrade line-profiler
-$PIP install --upgrade nose2
-$PIP install --upgrade flask
-$PIP install --upgrade sqlalchemy flask-sqlalchemy
-$PIP install --upgrade sh
-$PIP install --upgrade lxml
-$PIP install --upgrade boto
-$PIP install --upgrade fabric
-$PIP install --upgrade psutil
+$EASY_INSTALL readline
+$PIP_INSTALL ipython ipdb
+$PIP_INSTALL flake8 pylint
+$PIP_INSTALL numpy scipy matplotlib
+$PIP_INSTALL scikit-learn joblib sympy
+$PIP_INSTALL mayavi
+$PIP_INSTALL cvxopt
+$PIP_INSTALL PyOpenGL PyOpenGL_accelerate OpenGLContext
+$PIP_INSTALL Mako PyOpenCL
+$PIP_INSTALL paramiko
+$PIP_INSTALL PIL
+$PIP_INSTALL networkx
+$PIP_INSTALL line-profiler
+$PIP_INSTALL nose2
+$PIP_INSTALL flask
+$PIP_INSTALL sqlalchemy flask-sqlalchemy
+$PIP_INSTALL sh
+$PIP_INSTALL lxml
+$PIP_INSTALL boto
+$PIP_INSTALL fabric
+$PIP_INSTALL psutil
+$PIP_INSTALL bokeh
 
 echo "* Installing Pyp..."
-$PIP install --upgrade pyp
+$PIP_INSTALL pyp
 
 echo "* Installing Pelican..."
-$PIP install --upgrade pelican Markdown typogrify boto
+$PIP_INSTALL pelican Markdown typogrify boto
 
 echo "* SUCCESSFULLY DONE!"