]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Explicitely using --buildsystem=python_distutils
authorThomas Goirand <thomas@goirand.fr>
Thu, 1 Aug 2013 10:00:57 +0000 (18:00 +0800)
committerThomas Goirand <thomas@goirand.fr>
Thu, 1 Aug 2013 10:00:57 +0000 (18:00 +0800)
Rewritten-From: a0dabcaaac12db92f37369f194c208d9d1da479a

xenial/debian/rules

index 837d4cfe72af3b0cbee958573ce89db49b8ce776..bfc6c64a10d9f55b7ded9271e759bb089b0b4185 100755 (executable)
@@ -9,11 +9,11 @@ export OSLO_PACKAGE_VERSION=$(VERSION)
 PYTHONS:=$(shell pyversions -vr)
 
 %:
-       dh $@ --with python2
+       dh $@ --buildsystem=python_distutils --with python2
 
 override_dh_auto_install:
        set -e ; for pyvers in $(PYTHONS) ; do \
-               python$$pyvers setup.py install --install-layout=deb --root $(CURDIR)/debian/tmp ; \
+               python$$pyvers setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp ; \
        done
 #      dh_auto_install
 #      find . -type d -name tests | xargs rm -fr
@@ -23,7 +23,7 @@ override_dh_auto_install:
 #      done
 
 override_dh_install:
-       dh_install --fail-missing -X/usr/etc -X/usr/bin
+       dh_install -O--buildsystem=python_distutils --fail-missing -X/usr/etc -X/usr/bin
 
        install -D -m 0640 etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini       $(CURDIR)/debian/neutron-common/usr/share/neutron-common/ovs_neutron_plugin.ini