File: rules

package info (click to toggle)
mpmath 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,348 kB
  • sloc: python: 45,016; makefile: 17; sh: 4
file content (33 lines) | stat: -rwxr-xr-x 1,085 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=mpmath
export PYBUILD_AFTER_BUILD_python3=cd doc ; PYTHONPATH={build_dir} {interpreter} build.py

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

override_dh_auto_test:
	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="cd mpmath ; PYTHONPATH={build_dir} {interpreter} tests/runtests.py -strict -py -local ; cd .." dh_auto_test

override_dh_auto_install:
	dh_auto_install

	# remove files not compatible with Python 3.x
	find debian/python3-mpmath -name "exec_py2.py" -delete

	# move generated documentation under subdir to keep doc/ dir clean
	cp -arp doc/build/* $(CURDIR)/debian/python-mpmath-doc/usr/share/doc/python-mpmath-doc/html/
	cp -arp doc/source/* $(CURDIR)/debian/python-mpmath-doc/usr/share/doc/python-mpmath-doc/txt/

override_dh_installchangelogs:
	dh_installchangelogs    CHANGES

override_dh_installexamples:
	dh_installexamples      -ppython-mpmath-doc demo/*

override_dh_compress:
	dh_compress             -X.py -X.js -Xobjects.inv -X.txt