not sure how to make pip download packages for later installation
these notes are formalized in: startup-python.sh
notes on installing Sphinx from source:
#2009.09.04 09:57:32 charles@context:/media/C/downloads/python/sphinx tar zxvf docutils-0.5.tar.gz
python setup.py install sudo python setup.py install
cd ../pygments/ sudo python setup.py install
cd ../jinja2/ sudo python setup.py install
cd ../sphinx sudo python setup.py install
make sure /Library/Frameworks/Python.framework/Versions/2.5/bin is in the shell path
notes for downloading and installing python packages offline have been scattered. creating a new file in topics for these notes:
from /c/system/startup.txt
cd /directory/for/sources sudo easy_install -zmaxd . pylons #sudo easy_install -zmaxd . simplejson
then on offline machine, use: sudo easy_install -f . Pylons
cd /downloads/python/ mkdir sphinx cd /downloads/python/sphinx/ sudo easy_install -zmaxd . sphinx sudo easy_install -f . Sphinx
notes for this are elsewhere but this is also a good time to install mercurial easy_install mercurial
on Mac OS X this does require Xcode to be up to date (can still download an executable for mac)
be sure to set up easy_install for the new python instance this can be done by running ez_setup.py available at: | http://peak.telecommunity.com/dist/ez_setup.py
python setup.py develop
nosetests | http://somethingaboutorange.com/mrl/projects/nose/ | sudo easy_install nose
If you are on a shared system, Virtual Env may help isolate your Python instance from other Python instances on the system.
The other component that you will need to install is the Python Imaging Library (often abbreviated as PIL).
Binaries for windows are available at the main site. Binary packages are much easier to install than from source.
For Mac OS X you can use ports, or find a binary package like the following: | http://pythonmac.org/packages/py25-fat/index.html | This also requires the 2.5 version of Python from python.org. (The one distributed with Leopard won't work)
also [2009.06.26 13:19:06] after installing the python from python.org, make sure that the python in the default path is using the latest python which python python -V should be 2.5.4
sudo rm /usr/bin/python sudo ln -s /usr/local/bin/python /usr/bin/python
sudo rm /usr/bin/pythonw sudo ln -s /usr/local/bin/pythonw /usr/bin/pythonw
See also: | http://code.google.com/appengine/docs/python/images/installingPIL.html
Python is included with many operating systems.
An easy way to check if your system already has Python is to open up a terminal / command prompt and type:
python -V
for example: python -V Python 2.5.2
If your operating system does not have Python installed, please visit: | http://www.python.org | For more information on downloading and installing Python for your system.