Changes

Jump to: navigation, search

Running a development version of Gramps

358 bytes added, 06:12, 17 January 2017
Option 0: run from source repo
* Install a recent version of Ubuntu, or Mint, which is Ubuntu based.
* Install a text editor if you plan on modifying the Gramps source. You can use any text editor such as gedit, kate, or sourcenav (<tt>sudo apt-get install sourcenav</tt>), erik4, SPE, or [http://www.eclipse.org Eclipse] with the python plugin. Instructions on [[Development using Eclipse and Pydev|installing and configuring Eclipse for Gramps development]]. Note Follow the [[Programming Guidelines|programming guidelines for Gramps]].
* [[Brief_introduction_to_Git#Obtaining_a_copy_of_the_Gramps_repository|Clone the Gramps repository]]
=== Build ===
Now go into the top-level directory and type(earlier versions of Gramps used python 2 and from Gramps 4.2.x and newer only python 3 so substitute as required eg: python3):
python setup.py build
=== Run ===
==== Option 0: run from source repo ====
From Gramps 4.2.x and master in the top-level directory you only need to type (this assumes your default python is python3):
 
python Gramps.py
 
==== Option 1: run from source repo ====
For Gramps 4.1.x and earlier (You can use either python or python3 substitute as necessary ):
 
Here, we use the code in working directory to run Gramps. This means that compiled python files will be stored there. This is not ideal, but the easiest way to develop Gramps, as changes are immediately picked up by the code.
PYTHONPATH=~/gramps-trunk/build/lib.linux-$(uname -m)-2.7/:/usr/local/lib/python2.7/site-packages/ LD_LIBRARY_PATH=/usr/local/lib python grampsapp.py
'''{{man note|Note''': At the time of writing, only the last, so using grampsapp.py works, as not |all imports in Gramps have been converted to relative or absolute imports. This conversion will be was finished by at the end of 2012 however.}}
{{man note|1=Known Problems|2=Some problems are due to the migration from GTK2 to GTK3: [[GEPS_029:_GTK3-GObject_introspection_Conversion#Problems|list of known problems]]}}
./autogen.sh
* Build GRAMPSGramps:
make

Navigation menu