From 98ca469df1ea9740f572d8b17f32346cf0c5d05b Mon Sep 17 00:00:00 2001
From: Matthias Klose <doko@debian.org>
Date: Thu, 9 Sep 2010 20:50:51 +0200
Subject: [PATCH]   * python.mk (py_libdir): Return
 /usr/lib/python3/dist-packages for 3.x     versions.

---
 debian/changelog | 5 +++++
 debian/python.mk | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 1e89756..08cc322 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
 python-defaults (2.6.6-2) UNRELEASED; urgency=low
 
+  [ Piotr Ożarowski ]
   * Add README.derivatives (source package)
   * dh_python2:
     - add dist_fallback file with a list of Python distribution name and
@@ -12,6 +13,10 @@ python-defaults (2.6.6-2) UNRELEASED; urgency=low
   * use /usr/bin/python rather than python in python-minimal.postinst
     (closes: 595826)
 
+  [ Matthias Klose ]
+  * python.mk (py_libdir): Return /usr/lib/python3/dist-packages for 3.x
+    versions.
+
  -- Piotr Ożarowski <piotr@debian.org>  Thu, 02 Sep 2010 19:18:26 +0200
 
 python-defaults (2.6.6-1) unstable; urgency=low
diff --git a/debian/python.mk b/debian/python.mk
index 94e1a05..f0e66c1 100644
--- a/debian/python.mk
+++ b/debian/python.mk
@@ -23,7 +23,7 @@ py_sitename = $(if $(filter $(subst python,,$(1)), 2.3 2.4 2.5),site,dist)-packa
 # stuff. Call as: $(call py_libdir, <python version>).
 # Don't use this in shell snippets inside loops.
 
-py_libdir = /usr/lib/python$(subst python,,$(1))/$(py_sitename)
+py_libdir = /usr/lib/python$(strip $(if $(findstring 3.,$(subst python,,$(1))),3,$(subst python,,$(1))))/$(py_sitename)
 
 
 # The same macros for use inside loops in shell snippets
-- 
GitLab