debian-django-select2/debian/rules

32 lines
665 B
Makefile
Executable File

#!/usr/bin/make -f
%:
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-select2 --no-compile -O0 --install-layout=deb --install-scripts=/trash
python3 setup.py install --force --root=debian/python3-django-select2 --no-compile -O0 --install-layout=deb
rm -rf debian/python-django-select2/trash
override_dh_python2:
dh_python2 --no-guessing-versions