Difference between revisions of "Development using Eclipse and Pydev"

From Gramps
Jump to: navigation, search
m
(Installing EGit)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Developers/General]]
+
{{man note|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., <code>~/devel/eclipse_installs/</code>
 +
# A folder that will be the workspace. E.g., <code>~/devel/eclipse_workspaces/gramps</code>
  
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 <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>
  
 
== Installing Pydev and Pylint==
 
== Installing Pydev and Pylint==
  
Get pydev from the [http://www.pydev.org/download.html pydev download site] or use the [http://pydev.org/updates pydev update site].
+
Get pydev from the [http://www.pydev.org/download.html pydev download site].
  
 
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 <code>/usr/bin/python</code>
 +
 
 +
<code>sudo apt-get install pylint</code>
 +
 
 +
Go to: {{man menu|window > preferences > pydev > pylint}} tick {{man label|[ ] Use pylint}} and enter <code>/usr/bin/pylint</code> as the pylint path.
 +
 
 +
== Installing EGit ==
 +
Follow the [http://www.eclipse.org/egit/download/ download instructions] to install the [http://www.eclipse.org/egit/ EGit] plugin.
 +
 
 +
Open the Git perspective and add a repository.
 +
 
 +
* Github:
 +
** See [https://wiki.eclipse.org/EGit/User_Guide#GitHub_Tutorial EGit/User_Guide#GitHub_Tutorial]
 +
 
 +
* Sourceforge( no longer used):
 +
** <code>ssh://<username>@git.code.sf.net/p/gramps/source</code>
  
sudo apt-get install pylint
+
Select Checkout project using new project wizard. Select pydev project wizard.
Go to: window > preferences > pydev > pylint tick use pylint and enter /usr/bin/pylint as the pylint path.
 
  
== Installing Subversion ==
+
==See also==
Follow the [http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA download instructions] to install the Subclipse plugin.
+
* [[Running a development version of Gramps]]
  
Open the subversion perspective and add a repository.
+
[[Category:Developers/General]]
https://gramps.svn.sourceforge.net/svnroot/gramps/trunk for working on the trunk code. Select Checkout project using new project wizard. Select pydev project wizard.
 

Latest revision as of 03:39, 15 June 2022

Gramps-notes.png
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.

  • 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