For version 4.0 and newer

Dependency

stdeb, which produces Debian source packages from Python packages via a new distutils command, sdist_dsc. Automatic defaults are provided for the Debian package, but many aspects of the resulting package can be customized. An additional command, bdist_deb, creates a Debian binary package, a .deb file. The debianize command builds a debian/ directory directly alongside your setup.py.

sudo apt-get install python-stdeb python-all # or python3-all

Build

For testing only: you can get this experimental 'python-gramps' package under UNSTABLE section.

There is a problem with usr/share/pyshared/gramps/gen/utils/resource-path file, need to use an environment variable: GRAMPS_RESOURCES.

The launcher under /usr/bin/gramps is using the same path for current stable release and this testing version. Backup your launcher if you want to install both versions. Translations might be also overwritten, you have been warned...

You need at least version 3.3.2 of python-gobject for Gramps 4.0.x.

You cannot use greater version than 2.28 of python-gobject for Gramps 3.4.x.

The details on how things are going to be packaged into deb files, what are the dependencies, the pre- and post- install and removal scripts etc are under debian/ directory. Please refer to the Debian New Maintainers' Guide for further details.