=================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/pymongo/pymongo-2.5.ebuild,v retrieving revision 1.1 diff -u -B -u -r1.1 pymongo-2.5.ebuild --- pymongo-2.5.ebuild 25 Mar 2013 09:20:07 -0000 1.1 +++ pymongo-2.5.ebuild 2 May 2013 03:26:38 -0000 @@ -4,7 +4,7 @@ EAPI=5 -PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} ) +PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy{1_9,2_0} ) inherit check-reqs distutils-r1 @@ -23,6 +23,7 @@ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) test? ( dev-python/nose[${PYTHON_USEDEP}] ) kerberos? ( dev-python/pykerberos )" +DISTUTILS_IN_SOURCE_BUILD=1 reqcheck() { if use test; then @@ -100,7 +101,15 @@ done local failed - nosetests || failed=1 + if [[ "${EPYTHON}" == python3* ]]; then + pushd build/lib > /dev/null + mv ../../test . || die + 2to3 --no-diffs -w test + nosetests -e test_config_ssl test ./test || failed=1 + mv test ../../ || die + else + nosetests test -e test_config_ssl -e test_socket_reclamation test || failed=1 + fi mongod --dbpath "${dbpath}" --shutdown