File: rules

package info (click to toggle)
python-gmpy2 2.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,996 kB
  • sloc: ansic: 24,604; python: 4,911; makefile: 123
file content (24 lines) | stat: -rwxr-xr-x 623 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=gmpy2

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

override_dh_auto_clean:
	dh_auto_clean
	# Remove files generated by the build.
	rm -rf docs/_build
	rm -rf test/__pycache__
	rm -rf build
	rm -rf gmpy2.egg-info

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=$(shell pybuild --print {build_dir} --interpreter $(shell py3versions -d)) make man html -C $(CURDIR)/docs SPHINXOPTS="-D today=\"$(SOURCE_DATE_EPOCH)\""