File: rules

package info (click to toggle)
ply 3.11-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,768 kB
  • sloc: python: 10,385; perl: 31; sh: 25; makefile: 18
file content (28 lines) | stat: -rwxr-xr-x 747 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
#!/usr/bin/make -f

#export DH_VERBOSE=1

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

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

override_dh_auto_test:
	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="cd {build_dir}/test \
		&& {interpreter} testlex.py \
		&& {interpreter} testyacc.py \
		&& if dpkg --compare-versions {version} lt 3.14; then \
			{interpreter} testcpp.py; \
		   fi \
		&& /bin/sh cleanup.sh" dh_auto_test

execute_after_dh_auto_build:
	pod2man debian/dh_python3-ply > dh_python3-ply.1

execute_before_dh_gencontrol:
	echo "python3-ply:Provides=$$(PYTHONPATH=. python3 debian/virtual-packages.py python3-ply)" \
		>> debian/python3-ply.substvars

override_dh_compress:
	dh_compress --exclude=.py