From 77605565dbb88d07dd85ac0021d35b4c0f3e6d6e Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Mon, 23 Sep 2013 14:41:23 +0800 Subject: [PATCH] Adds the egg-info folder in the python package. Change-Id: Ib06ef689e155b267d26ab6e0e91a9a102c4d526f Rewritten-From: c9be4286cb8ab9f6162e1677ade879b6f07b3f6d --- xenial/debian/python-django-horizon.install | 1 - xenial/debian/rules | 12 +++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) delete mode 100644 xenial/debian/python-django-horizon.install diff --git a/xenial/debian/python-django-horizon.install b/xenial/debian/python-django-horizon.install deleted file mode 100644 index d9462f9..0000000 --- a/xenial/debian/python-django-horizon.install +++ /dev/null @@ -1 +0,0 @@ -usr/lib/python*/dist-packages/horizon diff --git a/xenial/debian/rules b/xenial/debian/rules index 1d3fc11..fc4fcb3 100755 --- a/xenial/debian/rules +++ b/xenial/debian/rules @@ -1,16 +1,22 @@ #!/usr/bin/make -f -#export DH_VERBOSE=1 +PYTHONS:=$(shell pyversions -vr) include /usr/share/openstack-pkg-tools/pkgos.make - export OSLO_PACKAGE_VERSION=$(VERSION) %: dh $@ --with python2 override_dh_auto_install: - python setup.py install --root=$(CURDIR)/debian/tmp --no-compile -O0 --install-layout=deb + python setup.py egg_info + set -e && for pyvers in $(PYTHONS); do \ + python$$pyvers setup.py install \ + --install-layout=deb \ + --root $(CURDIR)/debian/python-django-horizon \ + --no-compile -O0; \ + cp -rf horizon.egg-info $(CURDIR)/debian/python-django-horizon/usr/lib/python$$pyvers/dist-packages ; \ + done install -d -m 755 $(CURDIR)/debian/tmp/usr/share/openstack-dashboard install -d -m 755 $(CURDIR)/debian/tmp/etc/openstack-dashboard -- 2.45.2