debian/rules
author Simon Chabot <simon.chabot@logilab.fr>
Wed, 13 Feb 2019 19:10:43 +0100
changeset 860 abda658fe2ae
parent 794 8411efb08f71
child 862 942ef0731f4c
permissions -rwxr-xr-x
autopep8: F841 undefined name Special cases: - `long` and `unicode` no longer exist in python 3. I added a "# noqa" comment to avoid warnings. - `cmp` method no longer exist in python 3. It was used in the `test/unittest_analyze.py` file in the __cmp__ method. It appears that when this method is removed, all the tests are still valid. Therefore I dropped it.

#!/usr/bin/make -f

export RQL_FORCE_GECODE=1

ifeq (,$(shell py3versions -r 2>/dev/null))
    py3k = -Npython3-rql
endif

%:
	dh $@ --with python2,python3 --buildsystem pybuild $(py3k)

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C doc html

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) -C doc clean

override_dh_auto_test:
	# nothing

# prevent dh_python2 from generating bogus deps on python-yapps (nonexistent)
# or python-logilab-constraint (unnecessary with gecode)
override_dh_python2:
	dh_python2 --no-guessing-deps

override_dh_python3:
	dh_python3 --no-guessing-deps