File: rules

package info (click to toggle)
ply 3.11-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,500 kB
  • sloc: python: 10,380; perl: 31; makefile: 22; sh: 17
file content (32 lines) | stat: -rwxr-xr-x 934 bytes parent folder | download | duplicates (2)
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
32
#!/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 {interpreter} -c 'from _multiprocessing import SemLock; sl = SemLock(1, 2, 3, \"4\", 5); sl.release()' > /dev/null 2>&1; then \
			{interpreter} testcpp.py; \
		   else \
			echo 'Support for multiprocessing.SemLock missing, skipping testcpp.py'; \
		   fi \
		&& /bin/sh cleanup.sh" dh_auto_test

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

override_dh_gencontrol:
	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