File: rules

package info (click to toggle)
python-persistent 4.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 664 kB
  • sloc: python: 4,899; ansic: 2,787; makefile: 125
file content (28 lines) | stat: -rwxr-xr-x 612 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
#!/usr/bin/make -f

export DEB_BUILD_HARDENING=1

export PYBUILD_NAME=persistent

export PYBUILD_AFTER_INSTALL = cd {destdir}{install_dir}/persistent && \
	rm -r *.c tests

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. \
		http_proxy=http://127.0.0.1:9 \
		https_proxy=https://127.0.0.1:9 \
		sphinx-build -qNE -b html docs build/html

override_dh_auto_clean:
	dh_auto_clean
	rm -f persistent/*.so

override_dh_install:
	dh_install
	for d in debian/python3-persistent/usr/include/python*; do \
		[ "$$d" = *m ] || mv "$$d" "$$d"m; \
	done