Skip to content

Instantly share code, notes, and snippets.

@timriley
Created April 21, 2009 03:51
Show Gist options
  • Select an option

  • Save timriley/98918 to your computer and use it in GitHub Desktop.

Select an option

Save timriley/98918 to your computer and use it in GitHub Desktop.
# 1. Create dirs for unpacking your source code and installing your apps
mkdir $HOME/src
mkdir $HOME/apps
# 2. Create dir for local python modules
mkdir -p $HOME/apps/lib/python2.4/site-packages
export PYTHONPATH=$HOME/apps/lib/python2.4/site-packages
# 3. Install setuptools python module
cd $HOME/src
wget http://peak.telecommunity.com/dist/ez_setup.py
python2.4 ez_setup.py --prefix=$HOME/apps
# 4. Add new paths to shell environment
echo 'export PATH=$HOME/apps/bin:$PATH' >> $HOME/.bashrc
echo 'export PATH=$HOME/apps/bin:$PATH' >> $HOME/.bash_profile
echo 'export PYTHONPATH=$HOME/apps/lib/python2.4/site-packages' >> $HOME/.bashrc
echo 'export PYTHONPATH=$HOME/apps/lib/python2.4/site-packages' >> $HOME/.bash_profile
. ~/.bash_profile
# 5. Install pygments
easy_install --prefix=$HOME/apps Pygments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment