#!/usr/bin/make -f

%:
	dh $@ --with python2

override_dh_auto_install:
	dh_auto_install -- --install-scripts=/usr/sbin
	rm -rf $(CURDIR)/debian/exabgp/usr/etc

override_dh_auto_test:
	env INTERPRETER=python sbin/exabgp --fi > etc/exabgp/exabgp.env
	env INTERPRETER=python ./qa/bin/parsing
	env INTERPRETER=python ./qa/bin/conversation
	env INTERPRETER=python exabgp_log_enable=false nosetests ./qa/tests/*_test.py
