Skip to content

Instantly share code, notes, and snippets.

@bwmcadams
Created December 9, 2011 22:28
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 bwmcadams/1453602 to your computer and use it in GitHub Desktop.
Save bwmcadams/1453602 to your computer and use it in GitHub Desktop.
Scripts to setup Pip and Nose on new binary Python builds
[bamboo@bamboo-agent1 python2]$ ls
nosify.sh pip_me.sh r2.4.6 r2.5.6 r2.6.7 r2.7.2
#!/bin/sh
PIP=r${1}/bin/pip
if [ -e $PIP ]; then
$PIP install nose
else
echo "Please specify a valid version of Python ..."
fi
#!/bin/sh
PY=r${1}/bin/python
echo "Installing Pip to $PY..."
if [ -e $PY ]; then
curl http://python-distribute.org/distribute_setup.py | $PY
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | $PY
else
echo "Please specify a version of Python ..."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment