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
- Interpreter - Python
Click on AutoConfig
- Ok
- Apply
- Ok
Eclipse .project sample
1 <?xml version="1.0" encoding="UTF-8"?>
2 <projectDescription>
3 <name>pydevProj</name>
4 <comment></comment>
5 <projects>
6 </projects>
7 <buildSpec>
8 <buildCommand>
9 <name>org.python.pydev.PyDevBuilder</name>
10 <arguments>
11 </arguments>
12 </buildCommand>
13 </buildSpec>
14 <natures>
15 <nature>org.python.pydev.pythonNature</nature>
16 </natures>
17 </projectDescription>
.pydevproject sample
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <?eclipse-pydev version="1.0"?><pydev_project>
3 <pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
4 <pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
5 <pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
6 <path>/${PROJECT_DIR_NAME}/comp_a</path>
7 <path>/${PROJECT_DIR_NAME}/comp_b</path>
8 <path>/${PROJECT_DIR_NAME}/comp_b</path>
9 </pydev_pathproperty>
10 </pydev_project>
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