debian: only build for python2

This commit is contained in:
Benjamin Dauvergne 2014-10-16 15:32:59 +02:00 committed by Frédéric Péters
parent d8f7ca69e9
commit 29660eaaeb
2 changed files with 2 additions and 22 deletions

View File

@ -2,16 +2,10 @@ Source: django-tenant-schemas
Maintainer: Jérôme Schneider <jschneider@entrouvert.com>
Section: python
Priority: optional
Build-Depends: python-setuptools (>= 0.6b3), python3-setuptools, python-all (>= 2.6.6-3), python3-all, debhelper (>= 7)
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 7)
Standards-Version: 3.9.1
Package: python-django-tenant-schemas
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
Description: Tenant support for Django using PostgreSQL schemas.
Package: python3-django-tenant-schemas
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Description: Tenant support for Django using PostgreSQL schemas.

16
rules
View File

@ -4,18 +4,4 @@
# Tue, 14 Oct 2014 11:39:16 +0200
%:
dh $@ --with python2,python3 --buildsystem=python_distutils
override_dh_auto_clean:
python setup.py clean -a
python3 setup.py clean -a
find . -name \*.pyc -exec rm {} \;
override_dh_auto_build:
python setup.py build --force
python3 setup.py build --force
override_dh_auto_install:
python setup.py install --force --root=debian/python-django-tenant-schemas --no-compile -O0 --install-layout=deb
python3 setup.py install --force --root=debian/python3-django-tenant-schemas --no-compile -O0 --install-layout=deb
dh $@ --with python2