* Ludovic Rousseau <ludovic.rousseau@gmail.com>, 2011-03-10, 21:03:
I also wanted to move my debian/rules file from the "heavy" version [2] to the minimal version using: #!/usr/bin/make -f %: dh $@ --with python2 But I now get a warning and an error (complete log attached): [...] dh_python2 W: dh_python2:94: Python 2.6 should install files in /usr/lib/python2.6/dist-packages/. Did you forget "--install-layout=deb"? E: dh_python2:146: you most probably have to build extension for python2.5. make: *** [binary] Error 12
I don't know why dh_python2 is unhappy, but...
My package provides a binary extension so must be compiled for each supported Python versions: 2.5 and 2.6 as of now.
...your new debian/rules does *not* compile extensions for all supported versions. (The old one did.)
-- Jakub Wilk