override dh_auto_clean to remove .pybuild directory after first build
authorAfif Elghraoui <afif@ghraoui.name>
Mon, 8 Jun 2015 06:06:15 +0000 (23:06 -0700)
committerAfif Elghraoui <afif@ghraoui.name>
Mon, 8 Jun 2015 06:06:15 +0000 (23:06 -0700)
debian/rules

index 954372938041f5f5d8f636670aa1fb0ae881e828..07f2d1db7343d1973309ebd8e0184a7c891aab16 100755 (executable)
@@ -13,6 +13,10 @@ export HTSLIB_INCLUDE_DIR=/usr/include
 %:
        dh $@ --with python2,python3 --buildsystem=pybuild
 
+override_dh_auto_clean:
+       dh_auto_clean
+       rm -rf .pybuild
+
 override_dh_auto_test:
 #nothing to test until pysam is installed.
 #test package is provided for both Python versions