File: rules

package info (click to toggle)
prompt-toolkit 3.0.52-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,624 kB
  • sloc: python: 31,599; makefile: 151; sh: 6
file content (16 lines) | stat: -rwxr-xr-x 483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export PYBUILD_NAME=prompt-toolkit

VERSION := $(shell dpkg-parsechangelog | awk '/^Version: / { print $$2 }' | rev | cut -d- -f2- | rev)

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

execute_after_dh_auto_clean:
	# help pybuild
	rm -rf src/*.egg-info

execute_after_dh_auto_install:
	# fix internal version lookup
	sed -i -e "s|\(__version__\) = .*|\1 = '$(VERSION)'|" debian/python3-prompt-toolkit/usr/lib/python3*/dist-packages/prompt_toolkit/__init__.py