+if (-e "debian/pycompat") {
+ warning("Doing nothing since dh_pycompat exists; dh_pysupport or dh_pycentral should do the work. You can remove dh_python from your rules file.");
+ exit 0;
+}
+elsif (`grep Python-Version: debian/control`) {
+ warning("Doing nothing since Python-Version is set; dh_pysupport or dh_pycentral should do the work. You can remove dh_python from your rules file.");
+ exit 0;
+}
+else {
+ warning("This program is deprecated, you should use dh_pysupport or dh_pycentral instead.");
+}
+