Skip to content

Instantly share code, notes, and snippets.

@chintak
Created January 2, 2014 17:01
Show Gist options
  • Save chintak/8222397 to your computer and use it in GitHub Desktop.
Save chintak/8222397 to your computer and use it in GitHub Desktop.
Save to ``~/Documents/venv/`` Add ``alias newvirtualenv="source ~/Documents/venv/new_env.sh $1"`` to ~/.bash_profile. Invoke it using: ``newvirtualenv ENV_NAME``
mkvirtualenv $1
ln -ns ~/Documents/venv/dev_pack2/lib/python2.7/site-packages/* ~/Documents/venv/$1/lib/python2.7/site-packages
# Ipython installtion
ln -s ~/Documents/venv/dev_pack2/bin/i* ~/Documents/venv/$1/bin/
# ln -s ~/Documents/venv/dev_pack2/lib/python2.7/site-packages/IPython ~/Documents/venv/$1/lib/python2.7/site-packages/
# Nosetests installtion
ln -s ~/Documents/venv/dev_pack2/bin/nose* ~/Documents/venv/$1/bin/
# Sphinx installtion
ln -s ~/Documents/venv/dev_pack2/bin/rst* ~/Documents/venv/$1/bin/
ln -s ~/Documents/venv/dev_pack2/bin/sphinx* ~/Documents/venv/$1/bin/
# Cython installtion
ln -s ~/Documents/venv/dev_pack2/bin/cy* ~/Documents/venv/$1/bin/
# Pygments installtion
ln -s ~/Documents/venv/dev_pack2/bin/pycolor ~/Documents/venv/$1/bin/
ln -s ~/Documents/venv/dev_pack2/bin/pygmentize ~/Documents/venv/$1/bin/
# f2py for Fortran to Python - Numpy
ln -s ~/Documents/venv/dev_pack2/bin/f2py ~/Documents/venv/$1/bin/
@chintak
Copy link
Author

chintak commented Jan 2, 2014

Save to ~/Documents/venv/
Add alias newvirtualenv="source ~/Documents/venv/new_env.sh $1" to ~/.bash_profile.
Invoke it using: newvirtualenv ENV_NAME

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