| 1 | = The Eclipse integrated development environment = |
| 2 | |
| 3 | = Install Eclipse+PyDev+BzrEclipse = |
| 4 | |
| 5 | 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, ...) |
| 6 | |
| 7 | Install Eclipse Classic from http://www.eclipse.org/downloads/ |
| 8 | |
| 9 | Install PyDev from inside Eclipse (using the update site), follow instructions at http://pydev.org/manual_101_install.html |
| 10 | |
| 11 | Install BzrEclipse: |
| 12 | |
| 13 | 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 |
| 14 | Rename the directory to replace all the “-” and “.” in the name by “_” (don’t ask me why) |
| 15 | Run “python setup.py build_ext -i” from this directory |
| 16 | To install the plugin itself, follow instructions here: http://bazaar-vcs.org/BzrEclipse/Installation |
| 17 | Don’t forget to select all decorators in the Team/Bazaar/Decorators preference panel of Eclipse |
| 18 | Learn Eclipse+PyDev+BzrEclipse |
| 19 | |
| 20 | 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 |
| 21 | |
| 22 | = Using Bazaar with Eclipse Mini Howto = |
| 23 | |
| 24 | Create a local repository MADGRAPH in a command line as explained previously |
| 25 | Start Eclipse |
| 26 | Create a new project, select the “Bazaar/Branch as a new project” wizard |
| 27 | Select initialize a new branch location |
| 28 | Enter “lp:madgraph5/trunk” (you need to have tried Bazaar + LP in the command line before for this to work) |
| 29 | Select Tip (branch at last revision) |
| 30 | Enter “MadGraph-trunk” as a project name and enter “...MADGRAPH/trunk” as location. |
| 31 | You should see your mirror branch appearing as a new project |
| 32 | Right click on it, and select “branch” in “Team” |
| 33 | Select Tip (branch at last revision) |
| 34 | Enter “MG-myfeature” as a project name and enter “...MADGRAPH/myfeature” as location |
| 35 | You should see your task branch appearing as a new project |
| 36 | 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). |