File: rules

package info (click to toggle)
python-pyelftools 0.25-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,348 kB
  • sloc: python: 9,719; ansic: 142; makefile: 22; asm: 2
file content (19 lines) | stat: -rwxr-xr-x 459 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
#DH_VERBOSE = 1

export PYBUILD_NAME = pyelftools

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

override_dh_install:
	# remove readelf.py script installed in /usr/bin/
	# it's not part of the build
	dh_install
	rm -r debian/python3-pyelftools/usr/bin
	rm -r debian/python-pyelftools/usr/bin

override_dh_auto_test:
	# launch manually because dh_auto_test does not pick it up
	python2 test/all_tests.py
	python3 test/all_tests.py