%:
dh $@ --with python2,python3 --buildsystem=pybuild
-#Make sure Cython is recreating some c-files. To enable building twice in a
-#row these will be saved in advance and restored afterwards
-#debian/savefiles:
-# if grep -q -l "Generated by Cython" pysam/*.c ; then \
-# mkdir -p debian/savefiles ; \
-# mv `grep -l "Generated by Cython" pysam/*.c` debian/savefiles ; \
- fi
-
-#override_dh_auto_test:
-
-
-#override_dh_clean:
-# dh_clean
-# restore cython generated files
-# if [ -d debian/savefiles ] ; then \
-# mv debian/savefiles/* pysam ; \
-# rm -rf debian/savefiles ; \
-# fi
-
-#override_dh_auto_build: debian/savefiles
-# dh_auto_build
-
-#override_dh_auto_test:
-#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-# LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom \
-# --test-args='set -e; \
-# cp -a $(CURDIR)/tests ${build_dir}/tests ; \
-# cd {build_dir}/tests PYTHONPATH=${build_dir} ${interpreter} ./pysam_test.py \
-# && HTSLIB_LIBRARY_DIR=$(HTSLIBDIR) HTSLIB_INCLUDE_DIR=/usr/include PYTHONPATH=${build_dir} ${interpreter} ./tabix_test.py '
-#endif
-
-#override_dh_install-indep:
-# dh_install -p $(TESTPKG)
-# cd debian/$(TESTPKG)/usr/share/doc/python-pysam/tests; \
-# make clean; \
-# rm -f log.txt ; \
-# chmod a+x tabix_test.py
-# cd debian/$(TESTPKG)/usr/share/doc/python3-pysam/tests; \
-# make clean; \
-# rm -f log.txt ; \
-# chmod a+x tabix_test.py
+override_dh_auto_test:
+#nothing to test until pysam is installed.
+#test packages are provided for both pithon versions