debian/rules
author David Douard <david.douard@logilab.fr>
Wed, 22 Jul 2015 17:03:43 +0200
changeset 11653 18939907a115
parent 11632 b05f361db666
child 11666 344df5ba8f7f
permissions -rw-r--r--
[pkg] update to dh9 and dh_python2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11632
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     1
#!/usr/bin/make -f
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     2
11653
18939907a115 [pkg] update to dh9 and dh_python2
David Douard <david.douard@logilab.fr>
parents: 11632
diff changeset
     3
export NO_SETUPTOOLS=1
11632
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     4
11653
18939907a115 [pkg] update to dh9 and dh_python2
David Douard <david.douard@logilab.fr>
parents: 11632
diff changeset
     5
%:
18939907a115 [pkg] update to dh9 and dh_python2
David Douard <david.douard@logilab.fr>
parents: 11632
diff changeset
     6
	dh $@ --with python2
11632
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     7
11653
18939907a115 [pkg] update to dh9 and dh_python2
David Douard <david.douard@logilab.fr>
parents: 11632
diff changeset
     8
override_dh_auto_install:
18939907a115 [pkg] update to dh9 and dh_python2
David Douard <david.douard@logilab.fr>
parents: 11632
diff changeset
     9
	dh_auto_install
11632
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    10
	# remove generated .egg-info file
11653
18939907a115 [pkg] update to dh9 and dh_python2
David Douard <david.douard@logilab.fr>
parents: 11632
diff changeset
    11
	rm -rf debian/*/usr/lib/python*
11632
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    12
11653
18939907a115 [pkg] update to dh9 and dh_python2
David Douard <david.douard@logilab.fr>
parents: 11632
diff changeset
    13
override_dh_python2:
18939907a115 [pkg] update to dh9 and dh_python2
David Douard <david.douard@logilab.fr>
parents: 11632
diff changeset
    14
	dh_python2 -i /usr/share/cubicweb