Difference between revisions of "Development using Eclipse and Pydev"

From Gramps
(Installing EGit)
 
Line 2: Line 2:
  
 
To use Eclipse you'll need two folders.  
 
To use Eclipse you'll need two folders.  
# A folder where you install Eclipse.  E.g., <code>~/devel/eclipse_installs/</code>
+
* A folder where you install Eclipse.  E.g., <code>~/devel/eclipse_installs/</code>
# A folder that will be the workspace. E.g., <code>~/devel/eclipse_workspaces/gramps</code>
+
* A folder that will be the workspace. E.g., <code>~/devel/eclipse_workspaces/gramps</code>
  
 
Download an Eclipse package from [https://www.eclipse.org/downloads/ Eclipse.org]. Unzip the file into <code>~/devel/eclipse_installs/</code> and run the eclipse binary in <code>~/devel/eclipse_installs/eclipse</code> when asked for a workspace, enter <code>~/devel/eclipse_workspaces/gramps</code>
 
Download an Eclipse package from [https://www.eclipse.org/downloads/ Eclipse.org]. Unzip the file into <code>~/devel/eclipse_installs/</code> and run the eclipse binary in <code>~/devel/eclipse_installs/eclipse</code> when asked for a workspace, enter <code>~/devel/eclipse_workspaces/gramps</code>

Latest revision as of 01:45, 26 September 2025

Gramps-notes.png
Prerequisites:

A JRE (Java Runtime Environment) has to be installed.

To use Eclipse you'll need two folders.

  • A folder where you install Eclipse. E.g., ~/devel/eclipse_installs/
  • A folder that will be the workspace. E.g., ~/devel/eclipse_workspaces/gramps

Download an Eclipse package from Eclipse.org. Unzip the file into ~/devel/eclipse_installs/ and run the eclipse binary in ~/devel/eclipse_installs/eclipse when asked for a workspace, enter ~/devel/eclipse_workspaces/gramps

Installing Pydev and Pylint

Get pydev from the pydev download site.

Follow the installation tutorial

On Ubuntu, the python interpreter can be found at /usr/bin/python

sudo apt-get install pylint

Go to: window > preferences > pydev > pylint tick [ ] Use pylint and enter /usr/bin/pylint as the pylint path.

Installing EGit

Follow the download instructions to install the EGit plugin.

Open the Git perspective and add a repository.

  • Sourceforge( no longer used):
    • ssh://<username>@git.code.sf.net/p/gramps/source

Select Checkout project using new project wizard. Select pydev project wizard.

See also