2013/7/7 jerome <romjerome@yahoo.fr>
It seems that Gramps.py is present when building from SVN source, not from the tarball, where devs do not need to test version: we only need to build and install, then run from the launcher (or CLI).

Well, we don't want to install Gramps.py, so it will not go into the build directory, even if distributed.
Even if we would put it in build, it would be in the wrong directory there.
So not distributing it in the tar file is correct, the doc must change to reflect that Gramps.py is only for those that check out the code repository. Gramps.py is a fake file to allow developers to run code from the source dir, not what the user should be doing.

With a tarbal, gramps should be run from the build directory, or from installed version (which can be installed locally).

python setup.py build

#go to where the scripts are installed:

cd build/scripts-2.7

#in build GRAMPS_RESOURCES must also be set to actually run it:

GRAMPS_RESOURCES=/home/benny/gramps/branches/maintenance/gramps40/build/lib.linux-x86_64-2.7/  PYTHONPATH=$GRAMPS_RESOURCES:$PYTHONPATH ./gramps


I dislike that GRAMPS_RESOURCES must be set from build, it would be nice if that would not be needed from the build directory, but ok, build is just an in between stage.

Running from build is only to try out before a real install, and that works, eg install to a test directory:

python setup.py install --root ~/gramps/test
cd ~/gramps/test/usr/local/bin

#as this is a test dir, PYTHONPATH must be set to point to the locally installed gramps package :

PYTHONPATH=~/gramps/test/usr/local/lib/python2.7/dist-packages/:$PYTHONPATH ./gramps


Sombody update INSTALL and wiki doc to reflect this correctly?

Benny


--- En date de : Sam 6.7.13, Serge Noiraud <Serge.Noiraud@free.fr> a écrit :

> De: Serge Noiraud <Serge.Noiraud@free.fr>
> Objet: Re: [Gramps-users] No joy building Gramps 4.0.1 from source
> À: "Ron Johnson" <ron.l.johnson@cox.net>
> Cc: gramps-users@lists.sourceforge.net
> Date: Samedi 6 juillet 2013, 11h41
> Le 06/07/2013 04:31, Ron Johnson a
> écrit :
> > Hi,
> >
> > I downloaded the 4.0.1 tarball and extracted it to
> ~/gramps-4.0.1. Following
> > http://www.gramps-project.org/wiki/index.php?title=Linux:Build_from_source#Build_Gramps_4.x
> > , I ran "python setup.py build".  It spit out a
> *lot* of apparently clean
> > messages.
> Can you send the results ?
> On what distribution ?
> >
> > But there's no Gramps.py in ~/gramps-4.0.1.
> >
> > ron@haggis:~/gramps-4.0.1$ python Gramps.py -v
> > python: can't open file 'Gramps.py': [Errno 2] No such
> file or directory
> >
> > In fact, there seems to be no Gramps.py at all.
> >
> > ron@haggis:~/gramps-4.0.1$ du -a | grep Gramps.py
> > ron@haggis:~/gramps-4.0.1$
> >
> > What did I do wrong?
> Nothing.
>
> Serge
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Gramps-users mailing list
> Gramps-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gramps-users
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
Gramps-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-users