File: rules

package info (click to toggle)
pyfai 0.20.0+dfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 78,460 kB
  • sloc: python: 49,743; lisp: 7,059; sh: 225; ansic: 165; makefile: 119
file content (43 lines) | stat: -rwxr-xr-x 1,126 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export PYBUILD_NAME=pyfai

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

override_dh_clean:
	dh_clean
	rm -f $(patsubst %.pyx,%.c,$(wildcard pyFAI/ext/*.pyx))
	rm -rf build/html
	rm -rf *.egg-info

override_dh_auto_build:
	dh_auto_build
	python3 setup.py build build_man build_doc
	# PYBUILD_SYSTEM=custom \
	# PYBUILD_BUILD_ARGS="PYTHONPATH={build_dir} http_proxy='localhost' sphinx-build -N -bhtml doc/source build/html" dh_auto_build

override_dh_install:
	dh_numpy3

	# move the scripts to right package
	dh_install -p pyfai debian/python3-pyfai/usr/bin usr/
	# remove all scripts installed by pybuild
	rm -rf debian/python-pyfai/usr/bin
	rm -rf debian/python3-pyfai/usr/bin


	#Finally install stuff
	dh_install

# inactive test for now
override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="PYTHONPATH={build_dir} PYFAI_TESTIMAGES=testimages PYFAI_DATA=$(shell pwd) {interpreter} ./run_tests.py --installed" dh_auto_test

override_dh_installman:
	dh_installman -p pyfai build/man/*.1

override_dh_installdocs:
	dh_installdocs "build/sphinx/html" -p pyfai-doc
	dh_installdocs