Installing Python on Linux
Detailed instructions on installing Python and some useful programs and packages in Linux (specifically Ubuntu Linux 7.10).
LAD
If you're here to get LAD installed, you need Python 2.5, wxPython 2.8, Numeric or numpy, and NetworkX.
Python
Python itself comes with most common distributions or is available as an add-on package from your distribution provider. You probably also want to get easy_install, but it is not required. I will provide instructions here focusing on Ubuntu 7.10.
wxWidgets
$ sudo apt-get install python-wxgtk2.8 python-xml python-wxtools wx2.8-examples $ /usr/share/doc/wx2.8-examples/examples/unpack_examples.sh ~/wxExamples $ cd ~/wxExamples/wxPython $ python demo.py
NetworkX
sudo apt-get install python-networkx
Plone
On Ubuntu, download the unified installer and then open a terminal. Do this:
$ sudo apt-get install build-essential libreadline5-dev $ cd $WHERE_YOU_DOWNLOADED_PLONE $ tar zxf Plone-version-UnifiedInstaller.tgz $ cd Plone-version-UnifiedInstaller $ sudo ./install.sh # for versions 2.x $ sudo ./install.sh zeo # for versions 3.x
Start the server:
$ sudo /opt/Plone-version/zeocluster/bin/startcluster.sh
For debugging purposes, it helps to instead start the server in the foreground:
$ sudo /opt/Plone-version/zeocluster/server/bin/zeoctl start $ sudo /opt/Plone-version/zeocluster/clien1/bin/zopectl fg
With the server running, you can now open a web browser and visit localhost:8080 to bring up the Zope start page.
Soya3D
Soya3D is a very easy to use package for doing 3D graphics and game related things. There is an example in the tutorials that creates a 3D scene, loads a model into it, and animates the model rotating in about 8 lines of Python! Homepage is here, and tutorials are here$ sudo apt-get install python-soya python-soya-doc
PyGame (SDL bindings)
Don't be fooled; pySDL is pretty much dead. Long live PyGame, an almost 1 to 1 mapping of SDL. Not very easy or pythonic, but very complete adnd capable. Homepage is here$ sudo apt-get install python-pygame
Other packages you may be interested in
PyOgre (3D rendering): http://www.ogre3d.org/wiki/index.php/PyOgre
PyODE (Physics engine): http://pyode.sourceforge.net/
PyGame (SDL Graphics, sound, control, etc): http://www.pygame.org/
PyOpenGL (low level graphics): http://pyopengl.sourceforge.net/
SPE Integrated Development Environment
Now for the development environment SPE. This comes with wxGlade, an interface builder, and XRCed, an XML/interface file editor, as well as some other useful things. The best way to get SPE is using subversion:
$sudo apt-get install subversion
Go somewhere on your hard drive you want to keep the IDE, such as the Applications directory in your home directory. Checkout SPE using the command line client:
svn checkout svn://svn.berlios.de/python/spe/trunk/_spe
Once that's checked out, run SPE by going in the _spe directory (DO NOT EVER RENAME THIS DIRECTORY) and run 'python SPE.py'. You can update to the latest version of SPE now by going into the _spe folder and running an update:
svn update

