Further improvements on debian/rules.

This commit is contained in:
Sergio Durigan Junior 2016-07-09 19:07:16 -04:00
parent 7299d28f02
commit eb352bbe88

14
debian/rules vendored
View file

@ -4,20 +4,8 @@ export PYBUILD_NAME = kitchen
export PYBUILD_BEFORE_TEST_python2 = cp -a {dir}/kitchen2/tests {build_dir}/tests
export PYBUILD_BEFORE_TEST_python3 = cp -a {dir}/kitchen3/tests {build_dir}/tests
export PYBUILD_AFTER_TEST = rm -rf {build_dir}/tests
# Necessary because of the i18n tests
export LANGUAGE =
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
# override_dh_auto_test:
# ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
# mkdir -p debian/tmp/locales
# localedef -f UTF-8 -i en_US ./debian/tmp/locales/en_US.UTF-8/
# localedef -f UTF-8 -i pt_BR ./debian/tmp/locales/pt_BR.UTF-8/
# localedef -f ISO-8859-1 -i pt_BR ./debian/tmp/locales/pt_BR.ISO-8859-1/
# LOCPATH=$(CURDIR)/debian/tmp/locales dh_auto_test
# set -e; \
# for py in $(shell pyversions -r); do \
# LOCPATH=$(CURDIR)/debian/tmp/locales/ $$py /usr/bin/nosetests tests; \
# done
# endif