File: rules

package info (click to toggle)
python-pytest-benchmark 3.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,016 kB
  • sloc: python: 5,732; makefile: 12
file content (19 lines) | stat: -rwxr-xr-x 642 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
#!/usr/bin/make -f

export PYBUILD_NAME=pytest-benchmark
export PYBUILD_DEST_DIR_python3=debian/python3-pytest-benchmark
export PYBUILD_DEST_DIR_APP=debian/pytest-benchmark

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

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

override_dh_auto_install:
	dh_auto_install
	# Move the python3 application to the application package.
	mkdir -p $(PYBUILD_DEST_DIR_APP)/usr/bin
	mv $(PYBUILD_DEST_DIR_python3)/usr/bin/pytest-benchmark $(PYBUILD_DEST_DIR_APP)/usr/bin
	# Remove useless second copy of py3 app, not sure why it's here.
	rm $(PYBUILD_DEST_DIR_python3)/usr/bin/py.test-benchmark