I am trying to debianize a python package that requires Python 2.6 using stdeb. The build fails because it forces setup.py to be run with python2.5, which can't parse the python 2.6 "except Exception as e" syntax which leads to a final:
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
I am running this on Debian Squeeze using python-stdeb 0.6.0-1, debhelper 8.0.0, dpkg 220.127.116.11, and devscripts 2.10.69+squeeze4.
So, is there a way to tell debuild "please use python 2.6, pretty please"?