wiki:DevelopmentPage/EclipseEnvironment

The Eclipse integrated development environment

Install Eclipse+PyDev+BzrEclipse

Python + Bazaar+a Launchpad account and a basic editor is all you need to develop MadGraph. However, an Eclipse integrated solution has many advantages to boost productivity (internal versioning support, visual debugger, refactoring, unit testing, ...)

Install Eclipse Classic from http://www.eclipse.org/downloads/

Install PyDev from inside Eclipse (using the update site), follow instructions at http://pydev.org/manual_101_install.html

Install BzrEclipse:

Download http://code.launchpad.net/bzr-xmloutput/trunk/0.8.4/+download/bzr-xmloutput-0.8.4.tar.gz, unpack it in your local .bazaar/plugins directory

Rename the directory to replace all the “-” and “.” in the name by “_” (don’t ask me why)

Run “python setup.py build_ext -i” from this directory

To install the plugin itself, follow instructions here: http://bazaar-vcs.org/BzrEclipse/Installation

Don’t forget to select all decorators in the Team/Bazaar/Decorators preference panel of Eclipse

Learn Eclipse+PyDev+BzrEclipse

No special advice here, you should just play with it to try to discover new features. If you have some time, there is a nice short tutorial by IBM covering almost all you need to know: http://www.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604

Using Bazaar with Eclipse Mini Howto

Create a local repository MADGRAPH in a command line as explained previously

Start Eclipse

Create a new project, select the “Bazaar/Branch as a new project” wizard

Select initialize a new branch location

Enter “lp:madgraph5/trunk” (you need to have tried Bazaar + LP in the command line before for this to work)

Select Tip (branch at last revision)

Enter “MadGraph-trunk” as a project name and enter “...MADGRAPH/trunk” as location.

You should see your mirror branch appearing as a new project

Right click on it, and select “branch” in “Team”

Select Tip (branch at last revision)

Enter “MG-myfeature” as a project name and enter “...MADGRAPH/myfeature” as location

You should see your task branch appearing as a new project

From now on, you can use the same commands as in the command line, all of them being available in the right-click menu “Team”. For example, you can keep your mirror branch up-to-date by right clicking one “MadGraph-trunk” and the “Team/pull” (you might need to select the server lp:madgraph5/trunk in the list).

Last modified 14 years ago Last modified on Mar 8, 2010, 3:24:39 PM
Note: See TracWiki for help on using the wiki.