#!/usr/bin/make -f

override_dh_install:
	# Install everything excluding the *_d.so debug extensions to python3-meliae
	dh_install -X"*d-*.so" "debian/tmp/*" -p python3-meliae
	# Install the debug extensions to python3-meliae-dbg
	dh_install "debian/tmp/usr/lib/python*/*-packages/meliae/*d-*.so" -p python3-meliae-dbg
	# Continue with regular dh_install
	dh_install

override_dh_strip:
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
	dh_strip --dbg-package=python3-meliae-dbg
endif

%:
	dh $* --with python3 --buildsystem=pybuild
