Difference between revisions of "Development using Eclipse and Pydev"

From Gramps
Jump to: navigation, search
m (Installing Subversion: http://svn.code.sf.net/p/gramps/code/trunk/)
m (format)
Line 1: Line 1:
[[Category:Developers/General]]
 
 
Prerequisites: a JRE (Java Runtime Environment) has to be installed.
 
Prerequisites: a JRE (Java Runtime Environment) has to be installed.
  
To use Eclipse you'll need two folders. One where you install Eclipse, the other one will be the workspace. E.g., ~/devel/eclipse_installs/ and ~/devel/eclipse_workspaces/gramps
+
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 [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 [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
Line 12: Line 13:
 
Follow the [http://www.pydev.org/manual_101_install.html installation tutorial]
 
Follow the [http://www.pydev.org/manual_101_install.html installation tutorial]
  
On my Ubuntu, the python interpreter can be found at /usr/bin/python
+
On Ubuntu, the python interpreter can be found at /usr/bin/python
 
+
sudo apt-get install pylint
sudo apt-get install pylint
 
 
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.
  
Line 23: Line 23:
 
  http://svn.code.sf.net/p/gramps/code/trunk/
 
  http://svn.code.sf.net/p/gramps/code/trunk/
 
for working on the trunk code. Select Checkout project using new project wizard. Select pydev project wizard.
 
for working on the trunk code. Select Checkout project using new project wizard. Select pydev project wizard.
 +
 +
[[Category:Developers/General]]

Revision as of 04:20, 4 February 2013

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 Subversion

Follow the download instructions to install the Subclipse plugin.

Open the subversion perspective and add a repository.

http://svn.code.sf.net/p/gramps/code/trunk/

for working on the trunk code. Select Checkout project using new project wizard. Select pydev project wizard.