File: rules

package info (click to toggle)
python-pybedtools 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 16,260 kB
  • sloc: python: 9,992; cpp: 899; makefile: 141; sh: 131
file content (40 lines) | stat: -rwxr-xr-x 1,417 bytes parent folder | download
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
#!/usr/bin/make -f

DH_VERBOSE := 1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PYBUILD_NAME=pybedtools
export MATPLOTLIBRC=$(CURDIR)/debian/
#export PYBUILD_TEST_ARGS=--attr '!url'
export PYBUILD_BEFORE_TEST=cp {dir}/debian/mpl-expected.png {build_dir}/pybedtools/test/ ; python3 {dir}/setup.py install --user ; export HOME=$(CURDIR)/fakehome
export PYBUILD_TEST_ARGS=-v --doctest-modules
export PYBUILD_AFTER_TEST=cd {dir}/docs ; make clean doctest
export PYBUILD_DISABLE=test  # tests aren't passing upstream
export HOME=$(CURDIR)/fakehome
export PATH:=$(PATH):$(HOME)/.local/bin

%:
	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_install:
	dh_install
	rm -f debian/python3-pybedtools/usr/lib/python3*/dist-packages/pybedtools/test/prevent_open_file_regression

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