summaryrefslogtreecommitdiff
path: root/packages/debian/rules.in
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-02-10 20:53:20 -0500
committerScott Moser <smoser@ubuntu.com>2015-02-10 20:53:20 -0500
commitcd632b2f153a61faa48531cb41d0288650e72c71 (patch)
treea3a35b9ca437d999a15fdd25c0a0de88e3cafafb /packages/debian/rules.in
parent78915c97c18d678db10e0fde0d9306823c5f4610 (diff)
parentf5f280cae778bd214b91664f28d9eed997fbcda5 (diff)
downloadvyos-cloud-init-cd632b2f153a61faa48531cb41d0288650e72c71.tar.gz
vyos-cloud-init-cd632b2f153a61faa48531cb41d0288650e72c71.zip
python3 support.
This gives us functional python3 support. There are likely still bugs, but instance boot on openstack is functional now. LP: #1247132
Diffstat (limited to 'packages/debian/rules.in')
-rwxr-xr-xpackages/debian/rules.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/debian/rules.in b/packages/debian/rules.in
new file mode 100755
index 00000000..bb2e1d5c
--- /dev/null
+++ b/packages/debian/rules.in
@@ -0,0 +1,19 @@
+## template:basic
+#!/usr/bin/make -f
+
+INIT_SYSTEM ?= upstart,systemd
+PYVER ?= python${pyver}
+export PYBUILD_INSTALL_ARGS=--init-system=$(INIT_SYSTEM)
+
+%:
+ dh $@ --with $(PYVER),systemd --buildsystem pybuild
+
+override_dh_install:
+ dh_install
+ install -d debian/cloud-init/etc/rsyslog.d
+ cp tools/21-cloudinit.conf debian/cloud-init/etc/rsyslog.d/21-cloudinit.conf
+
+override_dh_auto_test:
+ # Because setup tools didn't copy data...
+ [ ! -d .pybuild/pythonX.Y_?.?/build/tests ] || cp -r tests/data .pybuild/pythonX.Y_?.?/build/tests
+ http_proxy= dh_auto_test -- --test-nose