2008-03-11 16:25:18 +05:30
|
|
|
$Id$
|
|
|
|
|
|
|
|
This file contains some useful details on the installation from source code
|
|
|
|
for GRAMPS. It does not cover installation of a pre-built binary package.
|
|
|
|
For that use your package manager, the rest is already done by the packager.
|
|
|
|
|
2009-04-22 08:10:18 +05:30
|
|
|
Uninstall old version
|
2009-03-08 01:41:58 +05:30
|
|
|
---------------------
|
2009-03-14 17:27:35 +05:30
|
|
|
If you do a source install in the same place of an existing install,
|
|
|
|
you need to remove the old version first. You can delete the old
|
2012-09-30 20:29:36 +05:30
|
|
|
version by deleting the installed directories (for example,
|
|
|
|
/usr/share/gramps
|
|
|
|
/usr/local/lib/pythonx.x/site-packages/gramps
|
2012-11-10 15:44:55 +05:30
|
|
|
/usr/local/lib/pythonx.x/dist-packages/gramps
|
2012-09-30 20:29:36 +05:30
|
|
|
/usr/lib/pythonx.x/site-packages/gramps
|
2012-11-10 15:44:55 +05:30
|
|
|
/usr/lib/pythonx.x/dist-packages/gramps
|
2012-09-30 20:29:36 +05:30
|
|
|
where pythonx.x is python2.7 or whatever version you installed gramps with.
|
2013-03-09 23:18:00 +05:30
|
|
|
Also remove the gramps .egg files that are installed along with the gramps
|
|
|
|
directory.
|
2012-09-30 20:29:36 +05:30
|
|
|
|
2013-03-09 23:18:00 +05:30
|
|
|
If you don't know the list of all files that Gramps installed, you can
|
|
|
|
reinstall it with the --record option, and take a look at the list this
|
|
|
|
produces (so python setup.py install --record grampsfiles.txt
|
2009-03-14 17:27:35 +05:30
|
|
|
|
|
|
|
GRAMPS is a python application, so loading happens on reading the
|
|
|
|
files, meaning that files of a previous version that are no longer
|
|
|
|
present in the new version can still be loaded, making the new install
|
2012-09-30 20:29:36 +05:30
|
|
|
unstable!
|
2008-03-11 16:25:18 +05:30
|
|
|
|
2012-09-30 20:29:36 +05:30
|
|
|
distutils install
|
|
|
|
-----------------
|
|
|
|
We do not check all dependencies of Gramps, see README for a
|
2012-11-10 15:44:55 +05:30
|
|
|
list of all required and optional dependencies. On running Gramps, errors will
|
|
|
|
be returned if dependencies are missing.
|
2011-05-07 18:41:19 +05:30
|
|
|
|
2008-03-11 16:25:18 +05:30
|
|
|
If you are building from released tarball, you should be able to just
|
2012-09-30 20:29:36 +05:30
|
|
|
run
|
|
|
|
|
|
|
|
python setup.py build
|
|
|
|
python setup.py install
|
|
|
|
|
|
|
|
where the last must be done as root. You can work with Gramps if you only build
|
|
|
|
it by pointing the PYTHONPATH to the build directory, but things like MIME type
|
|
|
|
and desktop entries will not be created then.
|
2008-03-11 16:25:18 +05:30
|
|
|
|
2012-09-30 20:59:37 +05:30
|
|
|
Typical install directories in linux (ubuntu) are:
|
|
|
|
* /usr/local/lib/python2.7/dist-packages/gramps/ : the gramps python module
|
|
|
|
* /usr/local/share/mime-info : mime info so gramps opens files automatically
|
|
|
|
* /usr/local/share/icons/gnome : our icons
|
|
|
|
* /usr/local/share/doc/gramps : documentation, also example .gramps and .gedcom
|
|
|
|
* /usr/local/bin : the gramps executable
|
|
|
|
* /usr/local/share/locale/xx/LC_MESSAGES : xx language code, translation
|
|
|
|
* /usr/local/share/man/man1/xx/man1 : xx language code, man file
|
|
|
|
* /usr/local/share/mime
|
|
|
|
* /usr/local/share/mime-info
|
2012-09-30 21:05:31 +05:30
|
|
|
|
|
|
|
Running Gramps
|
2012-09-30 20:59:37 +05:30
|
|
|
--------------
|
|
|
|
Gramps is python only, so no compilation is needed, you can even run gramps
|
|
|
|
from the source directory.
|
|
|
|
|
2012-11-10 15:44:55 +05:30
|
|
|
a) You installed Gramps, then you can run it with the command
|
|
|
|
|
|
|
|
gramps
|
|
|
|
|
|
|
|
b) You installed Gramps, and want to start it from the PYTHONPATH. In this
|
|
|
|
case use the command:
|
2012-09-30 21:05:31 +05:30
|
|
|
|
|
|
|
python -c 'from gramps.grampsapp import main; main()'
|
|
|
|
|
2012-11-10 15:44:55 +05:30
|
|
|
The executable 'gramps' in /usr/local/bin or /usr/bin from a) does
|
2012-09-30 21:05:31 +05:30
|
|
|
this for you.
|
|
|
|
|
2012-11-10 15:44:55 +05:30
|
|
|
b) You downloaded the Gramps source code to a directory, and want to run it.
|
2014-02-20 02:32:42 +05:30
|
|
|
You can start Gramps from the source code directory with
|
2012-11-10 15:44:55 +05:30
|
|
|
|
2012-09-30 21:05:31 +05:30
|
|
|
python Gramps.py
|
|
|
|
|
2014-02-20 02:32:42 +05:30
|
|
|
See gramps/gen/const.py how Gramps finds his resource directories in case
|
|
|
|
you encounter problems.
|
2008-03-11 16:25:18 +05:30
|
|
|
|
2009-04-22 08:10:18 +05:30
|
|
|
Custom directory installation
|
|
|
|
-------------------------------------
|
|
|
|
If you would like to install GRAMPS without being root, or in an
|
2012-09-30 20:29:36 +05:30
|
|
|
alternative location on windows, supply the --root argument to setup.py
|
2009-04-22 08:10:18 +05:30
|
|
|
|
|
|
|
For example:
|
2012-09-30 20:29:36 +05:30
|
|
|
python setup.py install --root ~/test
|
2009-04-22 08:10:18 +05:30
|
|
|
or
|
2012-09-30 20:29:36 +05:30
|
|
|
python setup.py install --root ~/test --enable-packager-mode
|
2008-03-11 16:25:18 +05:30
|
|
|
|
2012-09-30 20:29:36 +05:30
|
|
|
The last option, --enable-packager-mode, is needed if you want to disable
|
2012-11-10 15:44:55 +05:30
|
|
|
execution of post-install mime processing. If you don't have root/admin
|
|
|
|
access, this will be needed
|
2008-03-11 16:25:18 +05:30
|
|
|
|
|
|
|
Packager's issues
|
|
|
|
------------------
|
2012-09-30 20:29:36 +05:30
|
|
|
There is a MANIFEST.in file to indicate the work needed.
|
|
|
|
To create a source distribution run:
|
2008-05-17 05:21:36 +05:30
|
|
|
|
2012-09-30 20:29:36 +05:30
|
|
|
python setup.py sdist
|
2008-03-11 16:25:18 +05:30
|
|
|
|