]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Install usr/bin/neutron* in neutron-common
authorThomas Goirand <thomas@goirand.fr>
Thu, 1 Aug 2013 01:56:28 +0000 (09:56 +0800)
committerThomas Goirand <thomas@goirand.fr>
Thu, 1 Aug 2013 02:02:06 +0000 (10:02 +0800)
debian/neutron-common.install
debian/rules

index 4ac3ab54aab16218e1c35c583543cdcb8f6986ca..67b8b1e6842f5beeeb47b2f596be209a6b05d59c 100644 (file)
@@ -1,4 +1,4 @@
-bin/* usr/bin
+usr/bin/neutron*
 debian/neutron_sudoers /etc/sudoers.d
 etc/api-paste.ini      /usr/share/neutron-common
 etc/policy.json                /etc/neutron
index 4045c953233f58d87f09a7a09d722100551c905a..837d4cfe72af3b0cbee958573ce89db49b8ce776 100755 (executable)
@@ -6,10 +6,15 @@ include /usr/share/openstack-pkg-tools/pkgos.make
 
 export OSLO_PACKAGE_VERSION=$(VERSION)
 
+PYTHONS:=$(shell pyversions -vr)
+
 %:
        dh $@ --with python2
 
-#override_dh_auto_install:
+override_dh_auto_install:
+       set -e ; for pyvers in $(PYTHONS) ; do \
+               python$$pyvers setup.py install --install-layout=deb --root $(CURDIR)/debian/tmp ; \
+       done
 #      dh_auto_install
 #      find . -type d -name tests | xargs rm -fr
 #      for i in neutron/db/migration/alembic_migrations/versions/*.py ; do \