From af4b8c2bf885c8e173ab6438e687e17768f9bcf2 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Thu, 1 Aug 2013 09:56:28 +0800 Subject: [PATCH] Install usr/bin/neutron* in neutron-common Rewritten-From: 3ee5c16627912c84e2076e00cf899d2baa3d0470 --- xenial/debian/neutron-common.install | 2 +- xenial/debian/rules | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/xenial/debian/neutron-common.install b/xenial/debian/neutron-common.install index 4ac3ab54a..67b8b1e68 100644 --- a/xenial/debian/neutron-common.install +++ b/xenial/debian/neutron-common.install @@ -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 diff --git a/xenial/debian/rules b/xenial/debian/rules index 4045c9532..837d4cfe7 100755 --- a/xenial/debian/rules +++ b/xenial/debian/rules @@ -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 \ -- 2.45.2