## page was renamed from PyDev
= PyDev =

== Install PyDev 2.7.5 manually on Eclipse ==
{{{#!highlight sh
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
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
        <name>pydevProj</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
                <buildCommand>
                        <name>org.python.pydev.PyDevBuilder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
        </buildSpec>
        <natures>
                <nature>org.python.pydev.pythonNature</nature>
        </natures>
</projectDescription>
}}}

== .pydevproject sample ==
{{{#!highlight xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
<path>/${PROJECT_DIR_NAME}/comp_a</path>
<path>/${PROJECT_DIR_NAME}/comp_b</path>
<path>/${PROJECT_DIR_NAME}/comp_b</path>
</pydev_pathproperty>
</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. Windows, Preferences, Run/Debug, String substitution.

The PYTHONPATH is the one setted in the current project (PyDev-PYTHONPATH).

Disable pylint rule '''# pylint: disable=line-too-long'''

{{{
pip2 install pylint 
location: /home/user/.local/bin/pylint
working directory: ${project_loc} 
arguments: --disable=R,C,W ${resource_loc}

Run, external tools, external tools configuration, program. pylint , environment tab , variable PYTHONPATH
value: ${project_loc}/folder_a:${project_loc}/folder_b:${project_loc}/folder_c:${project_loc}/folder_d

Check the paths in .pydevproject
}}}

== 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