python_test() { cd "${BUILD_DIR}"/lib* # ^ '|| die' missing! echo "backend: Agg" > matplotlibrc # ^ '|| die' missing! MPLCONFIGDIR=. PYTHONPATH=. nosetests-"${EPYTHON}" || die # ^^^^^^^^^^^^ ^^^^^^^^^^^^^ # unnecessary unnecessary rm matplotlibrc # ^ '|| die' missing! } '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.
Merged via PR.