Changes

Jump to: navigation, search

Run Gramps40 for Windows from source using Python 2.7.3

1,148 bytes removed, 21:50, 3 December 2013
m
Start Gramps 4.0
TODO WORK: description
==Start Gramps 4.0.x==
===Get Gramps sources===
For all examples it's assumed that the Gramps source (e.g. from the GIT repository http://svngit.code.sf.net/p/gramps/codesource/ or the .tar.gz from from http://sourceforge.net/projects/gramps/files/branchesStable/maintenance../gramps40) will be stored into "C:\Gramps4.0".
It's helpful to use a Subversion special client for Windows to get these sources. Also if one gets sources only such a tool provides the possibility of history search and or compare and also to mark differences between the current version on the computer and the repository.
There are good experiences using TortoiseSVN TortoiseGIT from http://tortoisesvncode.netgoogle.com/p/tortoisegit/downloads.html.
===Prepare Setup===
[Changed 03.0912.2013]<strike>To run setup.py we need the translation tools from http://sourceforge.net/projects/gnuwin32/files/gettext/0.14.4/gettext-0.14.4.exe/download?use_mirror=switch&download=: Download gettext-0.14.4.exe and run it to install. For all examples assumed to be installed to: "C:\Program Files (x86)\GnuWin32\bin" (The default path of the installer)</strike>  
To run setup.py we need the translation tool msgfmt.exe having a proper version. The installer for poedit (http://sourceforge.net/projects/poedit/files/poedit/1.5/poedit-1.5.7-setup.exe/download) provides msgfmt.exe in version 0.18.1.0.
TODO ISSUE: Each work around to be removed if not necessary any more
* 03.0312.2013 (Deprecated)13: <strike>27.02.2013: Using LANG to force Gramps to use an other language than English runs at least for LANG=de_DE into an error (see [http://www.gramps-project.org/bugs/view.php?id=6481 6481])</strike>* 03.03.2013 (Deprecated): <strike>Currently there is an issue between setup.py and the code using the content of const.py that's why we need manually changes in ""C:\Gramps4.0\gramps\gen\const.py, line 203 to 206: In all string paths for LOCALE_DIR , DATA_DIR, IMAGE_DIR, DOC_DIR replace '\' by '\\'</strike>* 23.02.2013 (Deprecated): <strike>16.02.2013: see also above how to install the Gtk package. As described in issue 6429 [http://www.gramps-project.org/bugs/view.php?id=6429] there is a No work around to have the drop down menu for gramplets in the side and bottom bar working: new "Gdk-3.0necessary.typelib" from this issue page (TODO ISSUE: to be removed if the new typelib is part of the package)</strike>
===Overall appearance===
A short description 'How to control the general view of Gramps using GTK themes':
* For our example theme packages have to be stored in "C:\Python27\Lib\site-packages\gtkgnome\share\themes". Per default with the here used GTK package there are three packages available:
** Adwaita
** Bluebird
** Default
** Emacs
** Evolve
** Greybird
** HighContrast
** Orion
To select one of these themes one has to manipulate the a special settings.ini file. For our example it's placed there:
* C:\Python27\Lib\site-packages\gtkgnome\etc\gtk-3.0\settings.ini
* This example for settings.ini defines the theme "Adwaita" and the font "Segoe UI" having the font size 10:
[Settings]
gtk-theme-name = AdwaitaHighContrast
gtk-font-name = Segoe UI 10
To run Gramps a batch seems to be helpful:
<code>
set LANG=en_GBde_DE
@rem may be some time we need an other language
set GRAMPSHOME=C:\Gramps40
@rem we need the path of the Gtk binaries
set path=C:\Goocanvas;C:\Program Files (x86)\gs\gs9.0710\bin;C:\icu;C:\Python27\lib\site-packages\gtk;%path%;C:\Program Files (x86)\Graphviz2.3034\bin
@rem let's jump to Python binaries
</code>
"Gramps -v" should show this information now (last change 03if one uses the gramps-4.030.2013)2.tar.gz from http://sourceforge.net/projects/gramps/files/Stable/4.0.2/:
Gramps Settings:
----------------
python : 2.7.36 gramps : 4.0.0-alpha5-r21574M2 gtk++ : 3.610.4 pygobject : 3.410.2 pango : 1.3236.61
Not using bsddb3
bsddb : 45.83.4.20
bsddb.db : 4.7.25
cairo : 1.12.1016
pycairo : 1.10.0
osmgpsmap : 1.0.8
GExiv2 : 0.4
ICU : 50.1.2
Non-python dependencies:
------------------------
Graphviz : 2.3034 Ghostscr. : 9.0710
System PATH env variable:
-------------------------
C:\Goocanvas
C:\Program Files (x86)\gs\gs9.0710\bin
C:\icu
C:\Python27\lib\site-packages\gtk
...
168
edits

Navigation menu