File: rules

package info (click to toggle)
zope.interface 8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,508 kB
  • sloc: python: 14,756; ansic: 1,878; makefile: 140
file content (25 lines) | stat: -rwxr-xr-x 669 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
#!/usr/bin/make -f

export PYBUILD_NAME=zope.interface
export PYBUILD_TEST_PYTEST=1
ifeq ($(PYBUILD_AUTOPKGTEST),1)
export PYBUILD_TEST_ARGS := /usr/lib/python3/dist-packages/zope/interface/tests
endif
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export PYBUILD_VERBOSE=1
#export DH_VERBOSE=1

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	# Remove C sources.
	find debian/python3-zope.interface -name '*.c' -delete

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.rst

execute_after_dh_auto_clean:
	rm -f .eggs/README.txt
	rm -f src/zope.interface.egg-info/requires.txt
	rm -f src/zope/interface/_zope_interface_coptimizations.*.so