File: rules

package info (click to toggle)
ply 3.11-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,516 kB
  • sloc: python: 10,380; perl: 62; makefile: 21; sh: 15
file content (31 lines) | stat: -rwxr-xr-x 883 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
29
30
31
#!/usr/bin/make -f

#export DH_VERBOSE=1

# extra args for 'setup.py install'
export PYBUILD_INSTALL_ARGS=--no-compile

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

override_dh_auto_test:
	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="cd {build_dir}/test \
		&& {interpreter} testlex.py \
		&& {interpreter} testyacc.py \
		&& {interpreter} testcpp.py \
		&& /bin/sh cleanup.sh" dh_auto_test

override_dh_auto_build:
	dh_auto_build
	pod2man debian/dh_python-ply > dh_python-ply.1
	pod2man debian/dh_python3-ply > dh_python3-ply.1

override_dh_gencontrol:
	echo "python-ply:Provides=$$(PYTHONPATH=. python2.7 debian/virtual-packages.py python-ply)" \
		>> debian/python-ply.substvars
	echo "python3-ply:Provides=$$(PYTHONPATH=. python3 debian/virtual-packages.py python3-ply)" \
		>> debian/python3-ply.substvars
	dh_gencontrol

override_dh_compress:
	dh_compress --exclude=.py