File: rules

package info (click to toggle)
py-postgresql 1.2.1%2Bgit20180803.ef7b9a9-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,396 kB
  • sloc: python: 18,354; ansic: 2,024; sql: 282; sh: 26; makefile: 22
file content (30 lines) | stat: -rwxr-xr-x 842 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME=postgresql
export PYBUILD_TEST_ARGS=-k '\
	test_bytea_codec and \
	test_configfile \
	'

override_dh_auto_build:
	dh_auto_build
	# avoid shipping crypt.py since we rely on libpython3-stdlib instead
	rm -f debian/**/postgresql/resolved/crypt.py

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx \
		   -N -b html \
		   postgresql/documentation/sphinx/ \
		   $(CURDIR)/debian/python3-postgresql/usr/share/doc/python3-postgresql/html
	dh_sphinxdoc
endif

override_dh_auto_install:
	dh_auto_install
	rm -f $(CURDIR)/debian/python3-postgresql/usr/lib/**/dist-packages/postgresql/lib/libsys.sql

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