timriley (owner)

Revisions

gist: 98918 Download_button fork
public
Public Clone URL: git://gist.github.com/98918.git
Embed All Files: show embed
Dreamhost pygments install.sh #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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