File: rules

package info (click to toggle)
dh-python 3.20190308
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,184 kB
  • sloc: python: 4,171; makefile: 415; perl: 220; sh: 26
file content (22 lines) | stat: -rwxr-xr-x 522 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f
%:
	dh $@ --buildsystem=python_distutils

override_dh_auto_build:

override_dh_auto_install:
	set -e;\
	cd debian/python-foo/usr/share/pyshared/;\
	echo "keep_this_one\nremove_this_one" > foo.egg-info/namespace_packages.txt;\
	echo "True" > keep_this_one/__init__.py;\
	touch remove_this_one/__init__.py remove_this_one/foo.py bar/baz/spam.py


override_dh_pysupport:

override_dh_install:
	dh_install
	DH_VERBOSE=1 ../../dh_python2 --namespace foo --namespace bar.baz --namespace bar

clean:
	dh_clean