File: rules

package info (click to toggle)
mypy-protobuf 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 476 kB
  • sloc: python: 1,383; sh: 114; makefile: 10
file content (19 lines) | stat: -rwxr-xr-x 556 bytes parent folder | download
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_DISABLE=test

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


override_dh_clean:
	dh_clean

	find test/generated -type f -name '*.py' -and ! -name '__init__.py' -exec rm {} \;

	# Upstream release is dirty, recreate files for Git to not be lost and
	# in order to avoid a +ds repack just for this issue.
	mkdir test/generated/testproto/__pycache__
	touch test/generated/testproto/__pycache__/__init__.py
	mkdir test/generated/testproto/dot/com/__pycache__
	touch test/generated/testproto/dot/com/__pycache__/__init__.py