python_test() { esetup.py \ install --root="${T}/test-${EPYTHON}" \ --no-compile || die "install test failed" # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unnecessary #distutils_install_for_testing # ^^^^ usually it's better to report bugs than comment stuff out cd "${T}/test-${EPYTHON}/$(python_get_sitedir)" || die echo "backend: Agg" > matplotlibrc # ^ '|| die' missing! MPLCONFIGDIR=. PYTHONPATH=. nosetests-"${EPYTHON}" || die # ^^^^^^^^^^^^ ^^^^^^^^^^^^^ # unnecessary unnecessary } 'nosetests' is a wrapper script, and distutils-r1 sets up the environment so that it chooses the correct implementation itself. So please don't play with the wrapping.
Seems to be fixed already.