From cc34e91446bc34e8e080a569e5a970d4459457c0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 15 Aug 2010 00:14:10 -0700 Subject: [PATCH] Set PORTAGE_PYTHON for ebuild.sh subprocesses. --- pym/portage/tests/ebuild/test_doebuild_spawn.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/portage/tests/ebuild/test_doebuild_spawn.py b/pym/portage/tests/ebuild/test_doebuild_spawn.py index dd0ddcbad..9882f2a03 100644 --- a/pym/portage/tests/ebuild/test_doebuild_spawn.py +++ b/pym/portage/tests/ebuild/test_doebuild_spawn.py @@ -1,6 +1,7 @@ # Copyright 2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +import sys from portage import os from portage import _shell_quote from portage.const import EBUILD_SH_BINARY @@ -24,6 +25,7 @@ class DoebuildSpawnTestCase(TestCase): cpv = 'sys-apps/portage-2.1' metadata = {} settings.setcpv(cpv, mydb=metadata) + settings['PORTAGE_PYTHON'] = sys.executable settings['PORTAGE_BUILDDIR'] = os.path.join( settings['PORTAGE_TMPDIR'], cpv) settings['T'] = os.path.join( -- 2.26.2