File: rules

package info (click to toggle)
mpmath 1.4.0~b2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,548 kB
  • sloc: python: 47,702; makefile: 22
file content (33 lines) | stat: -rwxr-xr-x 932 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
#!/usr/bin/make -f

export PYBUILD_NAME=mpmath
export PYBUILD_BEFORE_TEST = cp conftest.py {build_dir}; \
	export HOME={home_dir}; \
	touch {home_dir}/.python_history
export PYBUILD_AFTER_TEST = rm {build_dir}/conftest.py; \
	rm {home_dir}/.python_history

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_build:
	PYTHONPATH=. sphinx-build -W --keep-going -b html docs build/sphinx/html

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

before-pybuild-autopkgtest:
	mkdir -p $(AUTOPKGTEST_TMP)/build/mpmath
	cp -r mpmath/tests $(AUTOPKGTEST_TMP)/build/mpmath

# TODO: go back to using this file from python-sympy-doc
# https://bugs.debian.org/1084813
debian/sympy/objects.inv:
	mkdir -p $(@D)
	cd $(@D) && wget https://docs.sympy.org/latest/$(@F)