#!/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