mysettings["PORTAGE_MASTER_PID"] = str(os.getpid())
# Set requested Python interpreter for Portage helpers.
- mysettings['PORTAGE_PYTHON'] = sys.executable
+ mysettings['PORTAGE_PYTHON'] = os.path.realpath(sys.executable)
# We are disabling user-specific bashrc files.
mysettings["BASH_ENV"] = INVALID_ENV_FILE
metadata=metadata, root_config=root_config,
type_name='ebuild')
settings.setcpv(pkg)
- settings['PORTAGE_PYTHON'] = sys.executable
+ settings['PORTAGE_PYTHON'] = os.path.realpath(sys.executable)
settings['PORTAGE_BUILDDIR'] = os.path.join(
settings['PORTAGE_TMPDIR'], cpv)
settings['T'] = os.path.join(
if 'PORTAGE_GRPNAME' in os.environ:
env['PORTAGE_GRPNAME'] = os.environ['PORTAGE_GRPNAME']
- env['PORTAGE_PYTHON'] = sys.executable
+ env['PORTAGE_PYTHON'] = os.path.realpath(sys.executable)
env['PORTAGE_BIN_PATH'] = PORTAGE_BIN_PATH
env['PORTAGE_PYM_PATH'] = PORTAGE_PYM_PATH
env['PORTAGE_BUILDDIR'] = tmpdir