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. Updated patch attached.

Kumar
diff -Nru --exclude changelog gadfly-1.0.0/debian/control gadfly-1.0.0/debian/control
--- gadfly-1.0.0/debian/control	2009-10-18 18:17:03.000000000 -0500
+++ gadfly-1.0.0/debian/control	2009-10-18 18:17:03.000000000 -0500
@@ -4,7 +4,7 @@
 Maintainer: Matthias Klose <d...@debian.org>
 Standards-Version: 3.8.0
 XS-Python-Version: all
-Build-Depends: debhelper (>= 5.0.37.1), python-central (>= 0.4.17), python-all-dev (>= 2.3.5-10)
+Build-Depends: debhelper (>= 5.0.37.1), python-central (>= 0.4.17), python-all-dev (>= 2.5.4-1)
 
 Package: gadfly
 Section: interpreters
diff -Nru --exclude changelog gadfly-1.0.0/debian/rules gadfly-1.0.0/debian/rules
--- gadfly-1.0.0/debian/rules	2009-10-18 18:17:03.000000000 -0500
+++ gadfly-1.0.0/debian/rules	2009-10-18 18:17:03.000000000 -0500
@@ -9,6 +9,8 @@
 
 kjb_version=1:$${Source-Version}
 
+include /usr/share/python/python.mk
+
 build: build-indep build-arch
 
 build-indep: build-indep-stamp
@@ -57,10 +59,9 @@
 
 	for v in $(PYVERSIONS); do \
 	  python$$v setup.py install_lib --install-dir \
-		debian/python-gadfly/usr/lib/python$$v/site-packages \
+		debian/python-gadfly/usr/lib/python$$v/$(call py_sitename_sh, $$v) \
 		--no-compile || exit 1; \
 	done
-
 	: # gadfly
 	/usr/bin/python setup.py install_scripts \
 		--install-dir debian/gadfly/usr/bin
@@ -92,7 +93,7 @@
 	cd kjbuckets && \
 	for v in $(PYVERSIONS); do \
 	  python$$v setup.py install \
-		--root $(CURDIR)/debian/python-kjbuckets || exit 1; \
+		--root $(CURDIR)/debian/python-kjbuckets $(py_setup_install_args) || exit 1; \
 	done
 	dh_installchangelogs -a CHANGES.txt
 	dh_installdocs -a doc/kjbuckets.txt

Reply via email to