Comment 3 for bug 788524

Revision history for this message
Monty Taylor (mordred) wrote :

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.