#sphinx needs this, along with some static site generators (charlesbrandt.com)
sudo pip install docutils

cd /c/mindstream
sudo python setup.py develop


sudo pip install BeautifulSoup

sudo pip install mako

pyglet

areaui

cd /c/medley
sudo python setup.py develop

(use binary distribution on Mac: http://qt-project.org/wiki/PySide_Binaries_MacOSX)
sudo pip install PySide

sudo pip install mercurial
also [2013.11.19 08:18:13]
sudo pip install hg-git

via: http://hg-git.github.io/

be sure ~/.hgrc has:
[extensions]
hgext.bookmarks =
hggit =

sudo pip install virtualenv
sudo pip install virtualenvwrapper

Install pip:
http://www.pip-installer.org/en/latest/installing.html

Summary:

download:
https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
cd ~/Downloads
sudo python ez_setup.py

download:
https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python get-pip.py

cd /c/moments/
sudo python setup.py develop

/c/technical/instances.txt
/c/technical/system/browsers.txt
/c/technical/system/startup-extended.sh
/c/technical/system/startup.sh
/c/technical/system/ubuntu.txt
/c/technical/system/ubuntu-extended.txt

sudo easy_install reportlab

sudo easy_install mako

sudo easy_install sphinx

sudo easy_install beautifulsoup

Old notes taken from:
/c/technical/system/python-install.txt


#2010.05.04 15:28:49 pil archive
for the original library, this works best:

do this after libjpeg install
http://biomunky.wordpress.com/2010/04/19/pil-10-6-using-pip/

sudo easy_install pip

then

sudo pip install http://effbot.org/downloads/Imaging-1.1.6.tar.gz

can test and verify installation with:
cd /c/scripts
python image_resize.py notice_world.jpg 100

#2009.01.21 10:13:12 imaging pil
The other component that you will need to install is the Python Imaging Library (often abbreviated as PIL).

http://www.pythonware.com/products/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)

See also:
http://code.google.com/appengine/docs/python/images/installingPIL.html



MISC
==========

#2009.01.21 10:23:06 virtualenv
If you are on a shared system, Virtual Env may help isolate your Python instance from other Python instances on the system.

#2010.04.19 15:32:01 mercurial
mercurial is usually installed earlier in the process...
it is needed before other python libraries
make sure you have it, and if not, install it now

also [2009.06.22 09:08:16]
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)





if freetype2 support in PIL is important to you, get that now too

might try Pillow this time around...
see if it's any easier

sudo easy_install pillow

test with:
python
import PIL

(may need to update a few scripts to use "import PIL" instead of "import Image"









Download and compile the latest libjpeg library: (be sure Xcode is set up first)

http://www.ijg.org

export VERSION=8d
#curl http://www.ijg.org/files/jpegsrc.v6b.tar.gz > /tmp/libjpeg.tar.gz
#curl http://www.ijg.org/files/jpegsrc.v8a.tar.gz > /tmp/libjpeg.tar.gz
curl http://www.ijg.org/files/jpegsrc.v$VERSION.tar.gz > ~/Downloads/libjpeg.tar.gz

tar -xzvf ~/Downloads/libjpeg.tar.gz
cd jpeg-$VERSION
./configure

sudo make install

cd ../
sudo rm -rf jpeg-$VERSION



PIL (Pillow)
=============

The Python Imaging Library is a tricky beast to get set up on systems where it is not included by default.

/c/technical/instances.txt
/c/technical/system/firefox.txt
/c/technical/system/chrome.txt
/c/technical/system/startup-extended.sh
/c/technical/system/ubuntu-extended.txt
/c/technical/system/startup.sh
/c/technical/system/ubuntu.txt

/c/technical/instances.txt
/c/technical/system/startup-extended.sh
/c/technical/system/ubuntu-extended.txt
/c/technical/system/startup.sh
/c/technical/system/ubuntu.txt

looks like cocoa branch has been merged with trunk
hg clone https://pyglet.googlecode.com/hg/ pyglet-trunk
cd pyglet-trunk
sudo python setup.py develop

sudo easy_install sphinx


Set up the Google App Engine SDK
=======================================

download google SDK:
http://code.google.com/appengine/downloads.html#Google_App_Engine_SDK_for_Python

#standarizing on location:
/c/downloads/python

unzip google_appengine_1.3.5.zip
#resulting in:
/c/downloads/python/google_appengine

install Google App Engine SDK
view documentation:
/c/sites/google_app_engine/google_appengine/README

http://code.google.com/appengine/docs/gettingstarted







mkdir -p /c/downloads/python/
cd /c/downloads/python/
hg clone https://pyglet.googlecode.com/hg/ pyglet
cd pyglet
sudo python setup.py develop (or install)

not sure how to make pip download packages for later installation

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

http://prdownloads.sourceforge.net/docutils/docutils-0.5.tar.gz?download
hg clone http://bitbucket.org/birkenfeld/sphinx/
hg clone http://dev.pocoo.org/hg/pygments-main pygments
hg clone http://dev.pocoo.org/hg/jinja2-main jinja2

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

if easy_install is not available, (which easy_install)
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

curl http://peak.telecommunity.com/dist/ez_setup.py > ez_setup.py

http://www.google.com/search?hl=en&client=firefox-a&channel=s&rls=org.mozilla%3Aen-US%3Aofficial&hs=ODd&q=jhead&btnG=Search
jhead - Google Search
http://www.sentex.net/~mwandel/jhead/
Exif Jpeg header manipulation tool

download and move prebuilt binary for osx to /usr/local/bin
sudo mv ~/Downloads/jhead /usr/local/bin
sudo chmod +x /usr/local/bin/jhead


python setup.py develop

nosetests
http://somethingaboutorange.com/mrl/projects/nose/
sudo easy_install nose

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

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.