File: rules

package info (click to toggle)
python-pymzml 2.5.10%2Brepack1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 28,092 kB
  • sloc: python: 5,956; pascal: 341; makefile: 219; sh: 29
file content (42 lines) | stat: -rwxr-xr-x 974 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
41
42
#! /usr/bin/make -f

export DH_VERBOSE = 1
export PYBUILD_NAME=pymzml
export PYBUILD_SYSTEM=distutils

TMPDIR="debian/tmp"

%:
	dh $@ --with python3 --buildsystem=pybuild --with sphinxdoc

override_dh_compress:
	dh_compress -X.py -X.idx -X.mzml -X.mzML \
		-Xexample_scripts \
		-Xtests

override_dh_clean:
	dh_quilt_unpatch
	dh_clean
	rm -rfv debian/source/include-binaries
	rm -rfv docs-for-build

configure_docs:
	rm -rfv docs-for-build
	cp -rpfv docs docs-for-build

override_dh_auto_configure: configure_docs
	dh_quilt_patch
	dh_auto_configure -O--buildsystem=pybuild -O--system=distutils --sourcedirectory=./

override_dh_auto_build:
	dh_auto_build
	cd docs-for-build && make html

override_dh_auto_install:
	dh_auto_install -O--buildsystem=pybuild
	#
	# Move the test.dat.igzip file erroneously installed to dist-packages/.
	mv debian/python3-pymzml/usr/lib/python3.13/dist-packages/test.dat.igzip \
		debian/python3-pymzml/usr/lib/python3.13/dist-packages/pymzml