Bug 1662793 - Set python appropriately in gyp_reader r=froydnj

Otherwise `gyp` can choose incorrectly when trying to figure out which Python to use to run its internal scripts, which can manifest as test failures in certain circumstances.

Differential Revision: https://phabricator.services.mozilla.com/D89165
This commit is contained in:
Ricky Stewart 2020-09-02 16:17:21 +00:00
parent 1a65ffc115
commit 0afe96bbf7

View File

@ -416,6 +416,7 @@ class GypProcessor(object):
for name, _ in finder.find('*/supplement.gypi')) for name, _ in finder.find('*/supplement.gypi'))
str_vars = dict(gyp_dir_attrs.variables) str_vars = dict(gyp_dir_attrs.variables)
str_vars['python'] = sys.executable
self._gyp_loader_future = executor.submit(load_gyp, [path], 'mozbuild', self._gyp_loader_future = executor.submit(load_gyp, [path], 'mozbuild',
str_vars, includes, str_vars, includes,
depth, params) depth, params)