Python Dev Environment Setup

Now that the system is all setup, it’s time to create the development environment. I actually switched back to windows for my development environment since it was easier.

I’m on three different dev environments so its important to have consistency between the different workstations.

Eclipse Plugins

Source Code Control, in my case I’m using subversion so I’m going to use Tortise for the windows box and subversion for Mac OSX and Fedora.

Installation is simple.

Install Python
Install Eclipse, must have Java installed
Install Pydev, via ‘help > Install New Software’ and input ‘www.pydev.org./updates’ select PyDev and install

Windows Vista
Install Tortise SVN install and checkout the project to your local folder. – Right click and hit SVN Checkout and enter in the SVN credentials

Linux / MacOSX
svn co url.to.repository/

Setup a project in Eclipse using python and map the folder to the dev environment
symbolically link the repo folder to your workspace folder and with a little luck things will work..

Windows Vista
mklink /D target_directory source_directory

If you’re running as a regular user you will likely have to use ‘run as administrator’ . Hit the start button, in the search box directly above the start button type in “cmd”. This will search for cmd.exe and appear in the menu. Right click and click ‘Run as Administrator’. From there you should be able to use the mklink command

Linux / Mac
ln -s target_directory source_directory

After the checkout process is done, startup Eclipse and your files should be there! If you want to create separate projects then create a separate workspace and move on.

Resources
http://www.ibm.com/developerworks/opensource/
https://www6.software.ibm.com/developerworks/education/os-perlecl/index.html
http://www.ibm.com/developerworks/aix/library/au-python/
http://www.ibm.com/developerworks/library/l-python-elegance-1.html
http://www.ibm.com/developerworks/linux/library/l-cp12.html

Disclaimer: This isn’t meant to be a how-to, just some notes I jotted down when I was getting my environment setup.