## page was renamed from PyDev
= PyDev =
== Install PyDev 2.7.5 manually on Eclipse ==
* wget [[http://surfnet.dl.sourceforge.net/project/pydev/pydev/PyDev%202.7.5/PyDev%202.7.5.zip]]
* cp PyDev\ 2.7.5.zip /tmp
* ECLIPSEDEST=/opt/ide/eclipse3.8.2
* cd /tmp
* unzip PyDev\ 2.7.5.zip
* cd features
* cp * -r $ECLIPSEDEST/features
* cd ../plugins
* cp * -r $ECLIPSEDEST/plugins
* $ECLIPSEDEST/eclipse &
Select menu Window, Preferences, General, Appearance, Classic Presentation, Classic Theme.
== Configure PyDev ==
* Window
* Preferences
* PyDev
* Interpreter - Python
* Click on AutoConfig
* Ok
* Apply
* Ok
== Eclipse .project sample ==
{{{#!highlight xml
pydevProj
org.python.pydev.PyDevBuilder
org.python.pydev.pythonNature
}}}
== .pydevproject sample ==
{{{#!highlight xml
Default
python interpreter
/${PROJECT_DIR_NAME}/comp_a
/${PROJECT_DIR_NAME}/comp_b
/${PROJECT_DIR_NAME}/comp_b
}}}
== Launch PyDev with Java 1.7 ==
eclipePyDevGo.sh
{{{
/usr/java/jdk1.7.0_60/bin/java -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /opt/ide/eclipseJunoSR2//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -os linux -ws gtk -arch x86_64 -showsplash /opt/ide/eclipseJunoSR2//plugins/org.eclipse.platform_4.2.2.v201302041200/splash.bmp -launcher /opt/ide/eclipseJunoSR2/eclipse -name Eclipse --launcher.library /opt/ide/eclipseJunoSR2//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807/eclipse_1502.so -startup /opt/ide/eclipseJunoSR2//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.overrideVmargs -exitdata 44990005 -product org.eclipse.epp.package.jee.product -vm /usr/java/jdk1.7.0_60/bin/java -vmargs -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /opt/ide/eclipseJunoSR2//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
}}}
== Eclipse external tools ==
* Window, Preferences, run/debug, string substitution
* Run, External tools, External tools configuration
* Link with default string substitutions https://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fconcepts-exttools.htm
=== Pylint example ===
* '''Location:''' /home/user/.local/bin/pylint
* '''Working dir:''' ${project_loc}
* '''Arguments:'''--rcfile=${pylint_file} ${resource_loc}
* pylint --list-msgs
The ${pylint_file} comes from a string substitution
The PYTHONPATH is the one setted in the current project (PyDev-PYTHONPATH).
Disable pylint rule '''# pylint: disable=line-too-long'''
== Eclipse marketplace ==
* Eclipse pydev 7.3.0
== File types ==
* Window
* Preferences
* PyDev
* Editor
* Code style
* File types
* Valid source files (comma separated list) and Default python extension