| Version 22 (modified by , 16 years ago) ( diff ) |
|---|
Eclipse for Chimera Development
These notes used the Ubuntu 10.04 package for eclipse, which provided: Eclipse SDK 3.5.2 (Build id: M20100211-1343). See the eclipse site for other downloads.
Eclipse Plugins
The PyDev plugin was installed, using the
Eclipse: Help > Install New Software utility, by adding
the http://pydev.org/updates site.
For a tour of using PyDev with Eclipse, see Ron Smith (2004), Python development with Eclipse and Ant.
For a useful vi emulation in eclipse, see viplugin. An alternative is eclim.
Configure PyDev Preferences
Create a new workspace (e.g., Eclipse - File > Switch Workspace > Other) for the new Chimera workspace settings. Then use Window > Preferences to locate the PyDev panels to setup the "Interpreter - Python" to use the Chimera python2.7 interpreter (be sure to manually add $CHIMERA/share and $CHIMERA/lib to the "system PYTHONPATH" configuration). Then set some Chimera environment variables (the $PATH and $CHIMERA syntax did not work, so these environment settings use full paths; the paths must point to hard-links in the file system, Chimera doesn't work with symbolic-links). Finally, an optional addition is to create a VirtualEnv for Chimera and add the pylint package, then configure the pylint preferences. It should be configured now to enable importing Chimera modules and running Chimera.
Attachments (4)
-
Chimera-Eclispe-PyDev-Preferences.png
(170.3 KB
) - added by 16 years ago.
chimera-pydev-python2.7
-
Chimera-Eclispe-PyDev-Preferences-Env.png
(115.6 KB
) - added by 16 years ago.
chimera-pydev-env
-
Chimera-Eclispe-PyDev-Preferences-PyLint.png
(110.4 KB
) - added by 16 years ago.
chimera-pydev-pylint
-
Chimera-Eclispe-PyDev-Run.png
(226.8 KB
) - added by 16 years ago.
chimera-pydev-run
Download all attachments as: .zip
![[Chimera Issue Tracking System]](/trac/chimera/chrome/site/chimera_logo.png)



