Difference between revisions of "Development using Eclipse and Pydev"

From Gramps
Jump to: navigation, search
m (format)
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
# A folder that will be the workspace. E.g., ~/devel/eclipse_workspaces/gramps
 
# A folder that will be the workspace. E.g., ~/devel/eclipse_workspaces/gramps
  
Download an Eclipse package from [http://www.eclipse.org/downloads/ 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
+
Download an Eclipse package from [https://www.eclipse.org/downloads/ 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==
 
== Installing Pydev and Pylint==
Line 17: Line 17:
 
Go to: window > preferences > pydev > pylint tick use pylint and enter /usr/bin/pylint as the pylint path.
 
Go to: window > preferences > pydev > pylint tick use pylint and enter /usr/bin/pylint as the pylint path.
  
== Installing Subversion ==
+
== Installing EGit ==
Follow the [http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA download instructions] to install the Subclipse plugin.
+
Follow the [http://www.eclipse.org/egit/download/ download instructions] to install the [http://www.eclipse.org/egit/ EGit] plugin.
  
Open the subversion perspective and add a repository.  
+
Open the Git perspective and add a repository.  
  http://svn.code.sf.net/p/gramps/code/trunk/
+
  ssh://<username>@git.code.sf.net/p/gramps/source
for working on the trunk code. Select Checkout project using new project wizard. Select pydev project wizard.
+
 
 +
Select Checkout project using new project wizard. Select pydev project wizard.
 +
 
 +
==See also==
 +
* [[Running a development version of Gramps]]
  
 
[[Category:Developers/General]]
 
[[Category:Developers/General]]

Revision as of 05:49, 28 September 2019

Prerequisites: a JRE (Java Runtime Environment) has to be installed.

To use Eclipse you'll need two folders.

  1. A folder where you install Eclipse. E.g., ~/devel/eclipse_installs/
  2. 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.

ssh://<username>@git.code.sf.net/p/gramps/source

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

See also