File: rules

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

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

%:
	dh $@  --with python2,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
	# Remove the python2 application.
	rm $(PYBUILD_DEST_DIR_python2)/usr/bin/py.test-benchmark
	rm $(PYBUILD_DEST_DIR_python2)/usr/bin/pytest-benchmark