From: jerome <rom...@ya...> - 2013-03-30 17:09:58
|
Nick, I made a new experimental .deb http://sourceforge.net/projects/gramps/files/Unstable/ but I still do not understand where ResourcePath should be set! Python 2.7.3 (default, Aug 1 2012, 05:16:07) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gramps.grampsapp as app ResourcePath.ERROR: Resource Path /home/jerome/gramps40/deb_dist/gramps-4.0.0alpha5/debian/python-gramps/usr/share is invalid I tried to use GRAMPS_RESOURCES environment variable on launcher too, but I never get the valid path... :( I thought on '/usr/share' (for locale, icons, xml files, etc ...). Also, I cannot manually edit the file (or to remove it) because there is a md5sum check on .deb generation. The post install script is working after fixing the minor syntax issue. So, this part should be OK: #!/bin/sh set -e # Automatically added by dh_pysupport if which update-python-modules >/dev/null 2>&1; then update-python-modules python-gramps.public fi # End automatically added section # Automatically added by dh_installmime if [ "$1" = "configure" ] && [ -x "`which update-mime-database 2>/dev/null`" ]; then update-mime-database /usr/share/mime fi # End automatically added section # Automatically added by dh_icons if which update-icon-caches >/dev/null 2>&1 ; then update-icon-caches /usr/share/icons/gramps.png fi # End automatically added section Otherwise, Debian wants 'dh_python2'[1]. I am still using the 'old' debhelper. :( I suppose that this experimental .deb is for Ubuntu only! [1] http://gramps-project.org/wiki/index.php?title=Talk:Debian Jérôme --- En date de : Jeu 28.3.13, Nick Hall <nic...@ho...> a écrit : > De: Nick Hall <nic...@ho...> > Objet: Re: [Gramps-devel] Hallo I can´t run gramps > À: "jerome" <rom...@ya...> > Cc: gra...@li... > Date: Jeudi 28 mars 2013, 17h01 > On 28/03/13 15:30, jerome wrote: > > We are also able to set paths for .deb! > > See 'gramps.dirs', 'gramps.docs', 'gramps.files', etc > ... > > > > http://sourceforge.net/p/gramps/code/21787/tree/trunk/debian/ > > > > OK, maybe need to create the file manually by the > packager... > > Gramps needs to know where to find its resources at > runtime. It also > needs to know if it is running from an installed copy or > from source. > > Is there another method that is more convenient than our > current approach? > > Creating a file in the post install script should be quite > easy. How do > other programs find their resources? > > Nick. > > |