The ebuild suffers from serious NIH: > do PYTHONPATH="${WORKDIR}"/${P}-${EPYTHON/./_}/install/usr/lib/${EPYTHON}/site-packages ${EPYTHON} ${x} || die "${x} failed" This is reinventing ${BUILD_DIR}, $(python_get_sitedir) (and both of them poorly), and on top of that, setting PYTHONPATH here should be completely unnecessary here since the eclass does that.