tags 547863 + patch Hi!
Please find attached a patch for this bug. Note that to test it with Python 2.6, you would either have to wait for a Python 2.6 build of lxml, or build one yourself in your Python 2.6 chroot with the latest package. HTH, and thanks. Kumar
diff -Nru --exclude changelog translate-toolkit-1.4.0/debian/rules translate-toolkit-1.4.0/debian/rules --- translate-toolkit-1.4.0/debian/rules 2009-10-14 22:39:18.000000000 -0500 +++ translate-toolkit-1.4.0/debian/rules 2009-10-14 22:39:19.000000000 -0500 @@ -9,6 +9,9 @@ pv = $(shell python -c 'import sys; print sys.version[:3]') include /usr/share/quilt/quilt.make +include /usr/share/python/python.mk + +SITEDIR = $(call py_sitename, $(pv)) build: build-stamp build-stamp: $(QUILT_STAMPFN) @@ -45,19 +48,19 @@ dh_clean -k dh_installdirs \ usr/share/doc/$(p) - python setup.py install --prefix=`pwd`/$(d)/usr - mv $(d)/usr/lib/python$(pv)/site-packages/translate/doc \ + python setup.py install --prefix=`pwd`/$(d)/usr $(py_setup_install_args) + mv $(d)/usr/lib/python$(pv)/$(SITEDIR)/translate/doc \ $(d)/usr/share/doc/$(p)/html - rm -f $(d)/usr/lib/python$(pv)/site-packages/translate/ChangeLog - rm -f $(d)/usr/lib/python$(pv)/site-packages/translate/COPYING - rm -f $(d)/usr/lib/python$(pv)/site-packages/translate/LICENSE - rm -f $(d)/usr/lib/python$(pv)/site-packages/translate/README + rm -f $(d)/usr/lib/python$(pv)/$(SITEDIR)/translate/ChangeLog + rm -f $(d)/usr/lib/python$(pv)/$(SITEDIR)/translate/COPYING + rm -f $(d)/usr/lib/python$(pv)/$(SITEDIR)/translate/LICENSE + rm -f $(d)/usr/lib/python$(pv)/$(SITEDIR)/translate/README mv $(d)/usr/share/doc/$(p)/html/api \ $(d)-dev-doc/usr/share/doc/$(p)-dev-doc/html dh_link \ /usr/share/doc/$(p)/html \ - /usr/lib/python$(pv)/site-packages/translate/doc + /usr/lib/python$(pv)/$(SITEDIR)/translate/doc dh_lintian