I am not sure how Gentoo does python2/3 but in Archlinux /usr/bin/python is python3 ... while /usr/bin/python2 (is obviously python2). Ubuntu has /usr/bin/python as python2 - so this causes confusion.
anyway, it is very easy to fix - you need to change a couple of spots in the sources to read 'python2' instead of just 'python'. Edit these two files, and change 'COMMAND python' to 'COMMAND python2' where they appear (search and replace, in a text editor) should work fine;
then save both files and then try compiling again, it should work for you.
I've heard Ubuntu 12.10 is going to have python3 as the default (as /usr/bin/python - (?) hopefully) so maybe this will eventually be changed upstream when Ubuntu has migrated - but since i don't use Ubuntu, i don't really know for sure.
@yellowhat
It's not a bug.
I am not sure how Gentoo does python2/3 but in Archlinux /usr/bin/python is python3 ... while /usr/bin/python2 (is obviously python2). Ubuntu has /usr/bin/python as python2 - so this causes confusion.
anyway, it is very easy to fix - you need to change a couple of spots in the sources to read 'python2' instead of just 'python'. Edit these two files, and change 'COMMAND python' to 'COMMAND python2' where they appear (search and replace, in a text editor) should work fine;
~/compiz/ compizconfig/ ccsm/CMakeLists .txt
~/compiz/ compizconfig/ compizconfig- python/ CMakeLists. txt
then save both files and then try compiling again, it should work for you.
I've heard Ubuntu 12.10 is going to have python3 as the default (as /usr/bin/python - (?) hopefully) so maybe this will eventually be changed upstream when Ubuntu has migrated - but since i don't use Ubuntu, i don't really know for sure.