aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-02-03 13:30:50 -0800
committerBen Pfaff <blp@nicira.com>2012-02-06 10:26:37 -0800
commit36fada16f091ac67be25f51f42a7f4e3072e6db8 (patch)
tree5aeb410db20cde8d5a56abf02a3051624928ab76
parent8f57722e311a665689ccc404042c29496c17beac (diff)
debian: Don't install Python modules for obsolete Python versions.
Python 2.4 is obsolete, not present in Debian squeeze or sid, so don't install Python modules for it. It would be better to just put the files directly into /usr/share/pyshared/ovs/, instead of in site-packages for some specific Python version, but this causes problems for builds on squeeze, as documented in commit bc3aa0bf5 (debian: Make python-openvswitch packaging work with squeeze dh_python2.): The dh_python2 helper in Debian squeeze has a limitation that is not mentioned anywhere, as far as I can tell: Python files must be in /usr/lib/python#.#/site-packages to be installed. The version in Debian wheezy does not have the same limitation. This meant that building the Debian packages on squeeze silently produced a broken python-openvswitch package, whereas building the same thing on wheezy built a working package. This fixes the problem by putting the .py files where squeeze expects them. It works on wheezy too. A before-and-after "debdiff" shows that the only significant effect of this commit is to drop python2.4 symlinks. CC: horms@debian.org Reported-by: Luca Falavigna <ftpmaster@debian.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
-rw-r--r--AUTHORS1
-rw-r--r--debian/openvswitch-test.install2
-rw-r--r--debian/python-openvswitch.install2
3 files changed, 3 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index 87b3ccdf..57ccc3e2 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -97,6 +97,7 @@ Joan Cirer joan@ev0.net
John Galgay john@galgay.net
Koichi Yagishita yagishita.koichi@jrc.co.jp
Krishna Miriyala krishna@nicira.com
+Luca Falavigna dktrkranz@debian.org
Luiz Henrique Ozaki luiz.ozaki@gmail.com
Michael A. Collins mike.a.collins@ark-net.org
Michael Hu mhu@nicira.com
diff --git a/debian/openvswitch-test.install b/debian/openvswitch-test.install
index a152aff5..a36c8281 100644
--- a/debian/openvswitch-test.install
+++ b/debian/openvswitch-test.install
@@ -1,2 +1,2 @@
-usr/share/openvswitch/python/ovstest usr/lib/python2.4/site-packages/
+usr/share/openvswitch/python/ovstest usr/lib/python2.6/dist-packages/
usr/bin/ovs-test
diff --git a/debian/python-openvswitch.install b/debian/python-openvswitch.install
index 67792985..9387e68d 100644
--- a/debian/python-openvswitch.install
+++ b/debian/python-openvswitch.install
@@ -1 +1 @@
-usr/share/openvswitch/python/ovs usr/lib/python2.4/site-packages/
+usr/share/openvswitch/python/ovs usr/lib/python2.6/dist-packages/