]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
Adds the egg-info folder in the python package.
authorThomas Goirand <thomas@goirand.fr>
Mon, 23 Sep 2013 06:41:23 +0000 (14:41 +0800)
committerThomas Goirand <thomas@goirand.fr>
Mon, 23 Sep 2013 06:41:23 +0000 (14:41 +0800)
Change-Id: Ib06ef689e155b267d26ab6e0e91a9a102c4d526f

Rewritten-From: c9be4286cb8ab9f6162e1677ade879b6f07b3f6d

trusty/debian/python-django-horizon.install [deleted file]
trusty/debian/rules

diff --git a/trusty/debian/python-django-horizon.install b/trusty/debian/python-django-horizon.install
deleted file mode 100644 (file)
index d9462f9..0000000
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/python*/dist-packages/horizon
index 1d3fc118b103681239807cd6b652fb6f63f63e2f..fc4fcb3ea8588c76ce662c48d643aa00d5532ef5 100755 (executable)
@@ -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