After a discussion on #ubuntu-server, openstack is taking the approach of adding this to the top of debian/rules:
WITH_PYTHON2 = $(shell test -f /usr/bin/dh_python2 && echo "--with python2")
And then using dh in the following way:
dh ${WITH_PYTHON2}
which has the effect of allowing us to use dh_python2 on systems that have it (natty and beyond) and falling back to python-support on pre-natty systems. So far all looks good, so our vested interest here is taken care of.
After a discussion on #ubuntu-server, openstack is taking the approach of adding this to the top of debian/rules:
WITH_PYTHON2 = $(shell test -f /usr/bin/dh_python2 && echo "--with python2")
And then using dh in the following way:
dh ${WITH_PYTHON2}
which has the effect of allowing us to use dh_python2 on systems that have it (natty and beyond) and falling back to python-support on pre-natty systems. So far all looks good, so our vested interest here is taken care of.