File: rules

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

export PYBUILD_NAME=gflags
export PYBUILD_DISABLE_python3=test

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

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
		PYBUILD_TEST_ARGS="{interpreter} gflags_unittest.py" \
		dh_auto_test

override_dh_auto_install:
	dh_auto_install
	mv $(CURDIR)/debian/python3-gflags/usr/bin/gflags2man.py $(CURDIR)/debian/python3-gflags/usr/bin/gflags2man
	PYTHONPATH=$(CURDIR) python3 gflags2man.py --dest_dir $(CURDIR) $(CURDIR)/debian/python3-gflags/usr/bin/gflags2man