Set PORTAGE_PYTHON for ebuild.sh subprocesses.
authorZac Medico <zmedico@gentoo.org>
Sun, 15 Aug 2010 07:14:10 +0000 (00:14 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 15 Aug 2010 07:14:10 +0000 (00:14 -0700)
pym/portage/tests/ebuild/test_doebuild_spawn.py

index dd0ddcbad819806b4d7eb2077890c8008f5f0ffc..9882f2a037ca18456a7766690b6996e4bc5eb9a9 100644 (file)
@@ -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(