File: rules

package info (click to toggle)
python-tz 2019.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,976 kB
  • sloc: python: 2,953; makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 454 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export PYBUILD_NAME=tz

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


override_dh_auto_install:
	dh_auto_install
	# Use system zoneinfo dir
	rm -fr debian/python*-tz/usr/lib/*/dist-packages/pytz/zoneinfo

override_dh_auto_test:
	dh_auto_test -- --before-test="\
		cp $(CURDIR)/README.txt {build_dir}; \
		cp -r $(CURDIR)/pytz/tests {build_dir}/pytz/" \
		--after-test="rm -rf {build_dir}/README.txt {build_dir}/pytz/tests"