1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
#!/usr/bin/make -f
DH_VERBOSE := 1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PYBUILD_NAME=pybedtools
export MATPLOTLIBRC=$(CURDIR)/debian/
# Add back test_issue_178 after upstream provided a patch https://github.com/daler/pybedtools/pull/228
export PYBUILD_TEST_ARGS=--attr '!url' # --exclude='(test_issue_178)'
export PYBUILD_BEFORE_TEST=cp {dir}/debian/mpl-expected.png {build_dir}/pybedtools/test/
export HOME=$(shell echo $$PWD"/fakehome")
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
override_dh_auto_build:
python3 setup.py cythonize
dh_auto_build
python3 setup.py develop --user
python3 setup.py build_sphinx
override_dh_auto_install:
dh_auto_install
rm -f debian/python3-pybedtools/usr/lib/python3*/dist-packages/pybedtools/test/prevent_open_file_regression
mkdir -p debian/pybedtools-bin/usr/bin
mv debian/python3-pybedtools/usr/bin/* debian/pybedtools-bin/usr/bin/
rm -fr debian/python-pybedtools/usr/bin
rm -fr debian/python3-pybedtools/usr/bin
override_dh_auto_test:
@echo
@echo *** NOT TESTING ***
@echo
override_dh_auto_clean:
/bin/rm -rf fakehome .eggs .pybuild
/bin/rm -rf debian/python3-pybedtools debian/files
/bin/rm -rf pybedtools.egg-info
/bin/rm -rf pybedtools/scripts/__pycache__/
/bin/rm -rf pybedtools/contrib/__pycache__/
/bin/rm -rf pybedtools/__pycache__/
find pybedtools -name "*.so" -o -name "*.o" | xargs -r rm
rm -rf build
/bin/rm -rf pybedtools/cbedtools.cpp pybedtools/featurefuncs.cpp
find docs/source/autodocs/ -name "*.rst" | xargs -r /bin/rm
#dh_auto_clean
|