Hi!

In addition, you would want to Build-Depend on
python-all-dev (>= 2.5.4-1) to be able to use python.mk present in
/usr/share/python/python.mk.

HTH, and sorry for missing this. I believe the attached, updated patch
should set things right.

Kumar
diff -Nru --exclude changelog python-imaging-1.1.6/debian/control python-imaging-1.1.6/debian/control
--- python-imaging-1.1.6/debian/control	2009-09-02 22:24:01.000000000 -0500
+++ python-imaging-1.1.6/debian/control	2009-10-18 18:22:01.000000000 -0500
@@ -2,7 +2,7 @@
 Section: python
 Priority: optional
 Maintainer: Matthias Klose <d...@debian.org>
-Build-Depends: tk8.5-dev, python-all-dev, python-all-dbg, python-central (>= 0.4.12), python-tk-dbg (>= 2.5.2-1.1), libsane-dev, libfreetype6-dev, libjpeg62-dev, zlib1g-dev, debhelper (>= 5.0.37.1)
+Build-Depends: tk8.5-dev, python-all-dev (>= 2.5.4-1), python-all-dbg, python-central (>= 0.4.12), python-tk-dbg (>= 2.5.2-1.1), libsane-dev, libfreetype6-dev, libjpeg62-dev, zlib1g-dev, debhelper (>= 5.0.37.1)
 Build-Conflicts: python-numarray
 XS-Python-Version: all
 Standards-Version: 3.8.0
diff -Nru --exclude changelog python-imaging-1.1.6/debian/control python-imaging-1.1.6/debian/control
--- python-imaging-1.1.6/debian/control	2009-09-02 22:24:01.000000000 -0500
+++ python-imaging-1.1.6/debian/control	2009-10-17 16:50:36.000000000 -0500
@@ -42,6 +42,7 @@
 Priority: extra
 Architecture: any
 Depends: python-imaging (= ${Source-Version}), python-dbg, ${shlibs:Depends}
+XB-Python-Version: ${python:Versions}
 Description: Python Imaging Library (debug extension)
  The Python Imaging Library (PIL) adds an image object to your Python
  interpreter. You can load images from a variety of file formats, and
@@ -64,6 +65,7 @@
 Priority: extra
 Architecture: any
 Depends: python-imaging-tk (= ${Source-Version}), python-imaging-dbg (= ${Source-Version}), python-dbg, ${shlibs:Depends}
+XB-Python-Version: ${python:Versions}
 Description: Python Imaging Library - ImageTk Module (debug extension)
  Tk dependent python-imaging module.
  .
@@ -87,6 +89,7 @@
 Priority: extra
 Architecture: any
 Depends: python-imaging-sane (= ${Source-Version}), python-imaging-dbg (= ${Source-Version}), python-dbg, ${shlibs:Depends}
+XB-Python-Version: ${python:Versions}
 Description: Python Imaging Library - SANE interface (debug extension)
  The imaging-sane module is a Python interface to the SANE (Scanner
  Access is Now Easy) library, which provides access to various raster
diff -Nru --exclude changelog python-imaging-1.1.6/debian/rules python-imaging-1.1.6/debian/rules
--- python-imaging-1.1.6/debian/rules	2008-06-23 14:59:23.000000000 -0500
+++ python-imaging-1.1.6/debian/rules	2009-10-17 17:02:56.000000000 -0500
@@ -6,6 +6,8 @@
 PYVERS	:= $(shell pyversions -vr)
 PYVER   := $(shell python -c 'import sys; print sys.version[:3]')
 
+include /usr/share/python/python.mk
+
 build: build-stamp
 build-stamp: $(PYVERS:%=build-stamp-python%)
 	touch $@
@@ -58,9 +60,9 @@
 	dh_clean -k
 
 install-python%:
-	python$* setup.py install --root $(CURDIR)/debian/python-imaging
+	python$* setup.py install --root $(CURDIR)/debian/python-imaging $(py_setup_install_args)
 	cd Sane && python$* setup.py install \
-		--root $(CURDIR)/debian/python-imaging-sane
+		--root $(CURDIR)/debian/python-imaging-sane  $(py_setup_install_args)
 	mkdir -p debian/python-imaging/usr/include/python$*
 	install -o root -g root -m 644 \
 		libImaging/Imaging.h \
@@ -70,17 +72,17 @@
 
 	dh_movefiles -ppython-imaging-tk \
 	    --sourcedir=debian/python-imaging \
-		usr/lib/python$*/site-packages/PIL/_imagingtk.so \
-		usr/lib/python$*/site-packages/PIL/ImageTk.py
+		usr/lib/python$*/$(call py_sitename_sh, $*)/PIL/_imagingtk.so \
+		usr/lib/python$*/$(call py_sitename_sh, $*)/PIL/ImageTk.py
 
-	python$*-dbg setup.py install --root $(CURDIR)/debian/python-imaging-dbg
+	python$*-dbg setup.py install --root $(CURDIR)/debian/python-imaging-dbg $(py_setup_install_args)
 	mkdir -p debian/python-imaging-dbg/usr/include/python$*_d
 	for i in Imaging.h ImPlatform.h ImDib.h; do \
 	  ln -sf ../python$*/$$i \
 	    debian/python-imaging-dbg/usr/include/python$*_d/$$i; \
 	done
 	cd Sane && python$*-dbg setup.py install \
-		--root $(CURDIR)/debian/python-imaging-sane-dbg
+		--root $(CURDIR)/debian/python-imaging-sane-dbg  $(py_setup_install_args)
 
 	find debian/python-imaging*-dbg \
 		! -type d ! \( -name '*_d.so' -o -name '*.h' \) | xargs rm -f
@@ -88,7 +90,7 @@
 
 	dh_movefiles -ppython-imaging-tk-dbg \
 	    --sourcedir=debian/python-imaging-dbg \
-		usr/lib/python$*/site-packages/PIL/_imagingtk_d.so
+		usr/lib/python$*/$(call py_sitename_sh, $*)/PIL/_imagingtk_d.so
 
 # Build architecture-independent files here.
 # Pass -i to all debhelper commands in this target to reduce clutter.

Reply via email to