In https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e64c97da5d53b1205efeba729fc9bd10546f25e8 package discovers python3 as: import('python').find_installation('python3') I did not find any generic command-line options I could override 'python3' resolution and ended up doing a sed hack: sed "s/py3_exe = import('python').find_installation('python3')/py3_exe = import('python').find_installation('${EPYTHON}')/" \ -i subprojects/sdb/meson.build || die I suspect that injecting [binaries] python3 = ${EPYTHON} would make it Just Work. Should meson.eclass provide a mechanism for ebuilds to do it? Or maybe there already is a way to do it already?