The new python api is installed by enabling BUILD_NEW_PYTHON_SUPPORT with ccmake, then, make and make install. The debian package building rules only use the configure script, and the configure scripts seems to do nothing with the --with-python flag.