I've attached another simple patch that I don't think was fixed in your changeset to stop the 'impl' var from _python_obtain_impls() in python-r1.eclass from leaking into the environment.
Thanks, Tim
>From 0a6174036e5d31028e47fb5f477033fdb7b76aba Mon Sep 17 00:00:00 2001 From: Tim Harder <radher...@gentoo.org> Date: Fri, 3 Mar 2017 15:49:16 -0500 Subject: [PATCH] python-r1.eclass: localize variable to avoid leaking into the env --- eclass/python-r1.eclass | 1 + 1 file changed, 1 insertion(+) diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index 929ec8fa8f..4d27881cd5 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -476,6 +476,7 @@ _python_obtain_impls() { MULTIBUILD_VARIANTS=() + local impl for impl in "${_PYTHON_SUPPORTED_IMPLS[@]}"; do has "${impl}" "${PYTHON_COMPAT[@]}" && \ use "python_targets_${impl}" && MULTIBUILD_VARIANTS+=( "${impl}" ) -- 2.12.0