python2 for python-gramps-4.0.x; python3 for python-gramps-4.1.x

This commit is contained in:
Jérôme Rapinat
2013-12-03 17:14:10 +01:00
parent a10a9af0e2
commit 2f190df9d5
3 changed files with 7 additions and 9 deletions

6
debian/rules vendored
View File

@@ -5,18 +5,18 @@ DH_VERBOSE=1
export PYBUILD_NAME=gramps
%:
dh $@ --with python3 --buildsystem=pybuild
dh $@ --with python --buildsystem=pybuild
# Override auto test because upstream do not use the standard unittest discover
override_dh_auto_test:
# Override of auto_build to force python 3
override_dh_auto_build:
python3 setup.py build
python setup.py build
# Override of auto_install to force python 3
override_dh_auto_install:
python3 setup.py install --root=debian/gramps --install-layout=deb
python setup.py install --root=debian/gramps --install-layout=deb
# Remove duplicate copyright information
rm debian/gramps/usr/share/doc/gramps/COPYING
# Remove install file as it is not needed by package users