Index: python-r1.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v retrieving revision 1.34 diff -u -B -r1.34 python-r1.eclass --- python-r1.eclass 2 Jan 2013 21:12:44 -0000 1.34 +++ python-r1.eclass 3 Jan 2013 22:58:55 -0000 @@ -382,6 +382,10 @@ # is installed. if [[ ! ${py2+1} && ${dis_py2} ]]; then debug-print "${FUNCNAME}: -> all py2 versions disabled" + if ! has python2_7 "${PYTHON_COMPAT[@]}"; then + debug-print "${FUNCNAME}: ---> package does not support 2.7" + return 0 + fi if has_version '=dev-lang/python-2*'; then debug-print "${FUNCNAME}: ---> but =python-2* installed!" return 1 @@ -389,6 +393,10 @@ fi if [[ ! ${py3+1} && ${dis_py3} ]]; then debug-print "${FUNCNAME}: -> all py3 versions disabled" + if ! has python3_2 "${PYTHON_COMPAT[@]}"; then + debug-print "${FUNCNAME}: ---> package does not support 3.2" + return 0 + fi if has_version '=dev-lang/python-3*'; then debug-print "${FUNCNAME}: ---> but =python-3* installed!" return 1