Skip to content

Instantly share code, notes, and snippets.

@dillera
Forked from pithyless/gist:1208841
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dillera/11373817 to your computer and use it in GitHub Desktop.
Save dillera/11373817 to your computer and use it in GitHub Desktop.

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

$ mkdir ~/Frameworks
$ ln -s "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework" ~/Frameworks

Add to .bashrc:

# Before other PATHs...
PATH=${PATH}:/usr/local/share/python

# Python
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python2.7
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true
  if [[ -r /usr/local/bin/virtualenvwrapper.sh ]]; then
        source /usr/local/bin/virtualenvwrapper.sh
else
    echo "WARNING: Can't find virtualenvwrapper.sh"
fi

Install virtualenv

$ pip install virtualenv 
$ pip install virtualenvwrapper

Test setup

mkvirtualenv test 
deactivate
rmvirtualenv test
@dillera
Copy link
Author

dillera commented Apr 28, 2014

So then, for storm:

mkvirtualenv storm
pip install stormssh
storm web

Load localhost:9002 in your browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment