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