зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset a7a7eb83f9cb (bug 1361912
)
This commit is contained in:
Родитель
30c6bacec3
Коммит
683dc39c8d
|
@ -19,6 +19,7 @@ config = {
|
||||||
],
|
],
|
||||||
"buildbot_json_path": "buildprops.json",
|
"buildbot_json_path": "buildprops.json",
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
"buildbot": "/tools/buildbot/bin/buildbot",
|
"buildbot": "/tools/buildbot/bin/buildbot",
|
||||||
},
|
},
|
||||||
'app_ini_path': '%(obj_dir)s/dist/bin/application.ini',
|
'app_ini_path': '%(obj_dir)s/dist/bin/application.ini',
|
||||||
|
|
|
@ -16,6 +16,7 @@ config = {
|
||||||
],
|
],
|
||||||
"buildbot_json_path": "buildprops.json",
|
"buildbot_json_path": "buildprops.json",
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
"buildbot": "/tools/buildbot/bin/buildbot",
|
"buildbot": "/tools/buildbot/bin/buildbot",
|
||||||
},
|
},
|
||||||
'app_ini_path': '%(obj_dir)s/dist/bin/application.ini',
|
'app_ini_path': '%(obj_dir)s/dist/bin/application.ini',
|
||||||
|
|
|
@ -23,6 +23,7 @@ config = {
|
||||||
],
|
],
|
||||||
"buildbot_json_path": "buildprops.json",
|
"buildbot_json_path": "buildprops.json",
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
"buildbot": [
|
"buildbot": [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
'c:\\mozilla-build\\buildbotve\\scripts\\buildbot'
|
'c:\\mozilla-build\\buildbotve\\scripts\\buildbot'
|
||||||
|
|
|
@ -23,6 +23,7 @@ config = {
|
||||||
],
|
],
|
||||||
"buildbot_json_path": "buildprops.json",
|
"buildbot_json_path": "buildprops.json",
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
"buildbot": [
|
"buildbot": [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
'c:\\mozilla-build\\buildbotve\\scripts\\buildbot'
|
'c:\\mozilla-build\\buildbotve\\scripts\\buildbot'
|
||||||
|
|
|
@ -15,6 +15,7 @@ config = {
|
||||||
],
|
],
|
||||||
"buildbot_json_path": "buildprops.json",
|
"buildbot_json_path": "buildprops.json",
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
"buildbot": "/tools/buildbot/bin/buildbot",
|
"buildbot": "/tools/buildbot/bin/buildbot",
|
||||||
},
|
},
|
||||||
'app_ini_path': '%(obj_dir)s/dist/bin/application.ini',
|
'app_ini_path': '%(obj_dir)s/dist/bin/application.ini',
|
||||||
|
|
|
@ -17,6 +17,7 @@ config = {
|
||||||
],
|
],
|
||||||
"buildbot_json_path": "buildprops.json",
|
"buildbot_json_path": "buildprops.json",
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
"buildbot": "/tools/buildbot/bin/buildbot",
|
"buildbot": "/tools/buildbot/bin/buildbot",
|
||||||
},
|
},
|
||||||
'app_ini_path': '%(obj_dir)s/dist/bin/application.ini',
|
'app_ini_path': '%(obj_dir)s/dist/bin/application.ini',
|
||||||
|
|
|
@ -22,6 +22,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -22,6 +22,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -23,6 +23,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -23,6 +23,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -22,6 +22,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -22,6 +22,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -22,6 +22,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -22,6 +22,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -18,6 +18,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -18,6 +18,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -23,6 +23,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -23,6 +23,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -23,6 +23,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -24,6 +24,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -23,6 +23,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -23,6 +23,7 @@ config = {
|
||||||
'check-test',
|
'check-test',
|
||||||
],
|
],
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
|
|
@ -68,6 +68,7 @@ config = {
|
||||||
# use mozmake?
|
# use mozmake?
|
||||||
"enable_mozmake": True,
|
"enable_mozmake": True,
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
'c:/mozilla-build/buildbotve/virtualenv.py'
|
'c:/mozilla-build/buildbotve/virtualenv.py'
|
||||||
|
|
|
@ -68,6 +68,7 @@ config = {
|
||||||
# use mozmake?
|
# use mozmake?
|
||||||
"enable_mozmake": True,
|
"enable_mozmake": True,
|
||||||
'exes': {
|
'exes': {
|
||||||
|
'python2.7': sys.executable,
|
||||||
'virtualenv': [
|
'virtualenv': [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
'c:/mozilla-build/buildbotve/virtualenv.py'
|
'c:/mozilla-build/buildbotve/virtualenv.py'
|
||||||
|
|
|
@ -750,8 +750,9 @@ or run without that action (ie: --no-{action})"
|
||||||
app_ini_path = dirs['abs_app_ini_path']
|
app_ini_path = dirs['abs_app_ini_path']
|
||||||
if (os.path.exists(print_conf_setting_path) and
|
if (os.path.exists(print_conf_setting_path) and
|
||||||
os.path.exists(app_ini_path)):
|
os.path.exists(app_ini_path)):
|
||||||
|
python = self.query_exe('python2.7')
|
||||||
cmd = [
|
cmd = [
|
||||||
sys.executable, os.path.join(dirs['abs_src_dir'], 'mach'), 'python',
|
python, os.path.join(dirs['abs_src_dir'], 'mach'), 'python',
|
||||||
print_conf_setting_path, app_ini_path,
|
print_conf_setting_path, app_ini_path,
|
||||||
'App', prop
|
'App', prop
|
||||||
]
|
]
|
||||||
|
@ -1304,8 +1305,9 @@ or run without that action (ie: --no-{action})"
|
||||||
dirs['abs_app_ini_path']),
|
dirs['abs_app_ini_path']),
|
||||||
level=error_level)
|
level=error_level)
|
||||||
self.info("Setting properties found in: %s" % dirs['abs_app_ini_path'])
|
self.info("Setting properties found in: %s" % dirs['abs_app_ini_path'])
|
||||||
|
python = self.query_exe('python2.7')
|
||||||
base_cmd = [
|
base_cmd = [
|
||||||
sys.executable, os.path.join(dirs['abs_src_dir'], 'mach'), 'python',
|
python, os.path.join(dirs['abs_src_dir'], 'mach'), 'python',
|
||||||
print_conf_setting_path, dirs['abs_app_ini_path'], 'App'
|
print_conf_setting_path, dirs['abs_app_ini_path'], 'App'
|
||||||
]
|
]
|
||||||
properties_needed = [
|
properties_needed = [
|
||||||
|
@ -1642,7 +1644,7 @@ or run without that action (ie: --no-{action})"
|
||||||
os.path.join(dirs['abs_src_dir'], 'mach')
|
os.path.join(dirs['abs_src_dir'], 'mach')
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
mach = [sys.executable, 'mach']
|
mach = [self.query_exe('python2.7'), 'mach']
|
||||||
|
|
||||||
return_code = self.run_command_m(
|
return_code = self.run_command_m(
|
||||||
command=mach + ['--log-no-times', 'build', '-v'],
|
command=mach + ['--log-no-times', 'build', '-v'],
|
||||||
|
@ -1766,8 +1768,9 @@ or run without that action (ie: --no-{action})"
|
||||||
def _execute_postflight_build_mach_command(self, mach_command_args):
|
def _execute_postflight_build_mach_command(self, mach_command_args):
|
||||||
env = self.query_build_env()
|
env = self.query_build_env()
|
||||||
env.update(self.query_mach_build_env())
|
env.update(self.query_mach_build_env())
|
||||||
|
python = self.query_exe('python2.7')
|
||||||
|
|
||||||
command = [sys.executable, 'mach', '--log-no-times']
|
command = [python, 'mach', '--log-no-times']
|
||||||
command.extend(mach_command_args)
|
command.extend(mach_command_args)
|
||||||
|
|
||||||
self.run_command_m(
|
self.run_command_m(
|
||||||
|
@ -1784,10 +1787,11 @@ or run without that action (ie: --no-{action})"
|
||||||
"""generates source archives and uploads them"""
|
"""generates source archives and uploads them"""
|
||||||
env = self.query_build_env()
|
env = self.query_build_env()
|
||||||
env.update(self.query_mach_build_env())
|
env.update(self.query_mach_build_env())
|
||||||
|
python = self.query_exe('python2.7')
|
||||||
dirs = self.query_abs_dirs()
|
dirs = self.query_abs_dirs()
|
||||||
|
|
||||||
self.run_command_m(
|
self.run_command_m(
|
||||||
command=[sys.executable, 'mach', '--log-no-times', 'configure'],
|
command=[python, 'mach', '--log-no-times', 'configure'],
|
||||||
cwd=dirs['abs_src_dir'],
|
cwd=dirs['abs_src_dir'],
|
||||||
env=env, output_timeout=60*3, halt_on_failure=True,
|
env=env, output_timeout=60*3, halt_on_failure=True,
|
||||||
)
|
)
|
||||||
|
@ -1839,8 +1843,9 @@ or run without that action (ie: --no-{action})"
|
||||||
env = self.query_build_env()
|
env = self.query_build_env()
|
||||||
env.update(self.query_check_test_env())
|
env.update(self.query_check_test_env())
|
||||||
|
|
||||||
|
python = self.query_exe('python2.7')
|
||||||
cmd = [
|
cmd = [
|
||||||
sys.executable, 'mach',
|
python, 'mach',
|
||||||
'--log-no-times',
|
'--log-no-times',
|
||||||
'build',
|
'build',
|
||||||
'-v',
|
'-v',
|
||||||
|
@ -2211,8 +2216,9 @@ or run without that action (ie: --no-{action})"
|
||||||
env = self.query_build_env()
|
env = self.query_build_env()
|
||||||
env.update(self.query_mach_build_env())
|
env.update(self.query_mach_build_env())
|
||||||
|
|
||||||
|
python = self.query_exe('python2.7')
|
||||||
return_code = self.run_command_m(
|
return_code = self.run_command_m(
|
||||||
command=[sys.executable, 'mach', 'valgrind-test'],
|
command=[python, 'mach', 'valgrind-test'],
|
||||||
cwd=self.query_abs_dirs()['abs_src_dir'],
|
cwd=self.query_abs_dirs()['abs_src_dir'],
|
||||||
env=env, output_timeout=self.config.get('max_build_output_timeout', 60 * 40)
|
env=env, output_timeout=self.config.get('max_build_output_timeout', 60 * 40)
|
||||||
)
|
)
|
||||||
|
|
|
@ -146,10 +146,11 @@ class LocalesMixin(ChunkingMixin):
|
||||||
def run_compare_locales(self, locale, halt_on_failure=False):
|
def run_compare_locales(self, locale, halt_on_failure=False):
|
||||||
dirs = self.query_abs_dirs()
|
dirs = self.query_abs_dirs()
|
||||||
env = self.query_l10n_env()
|
env = self.query_l10n_env()
|
||||||
|
python = self.query_exe('python2.7')
|
||||||
compare_locales_error_list = list(PythonErrorList)
|
compare_locales_error_list = list(PythonErrorList)
|
||||||
self.rmtree(dirs['abs_merge_dir'])
|
self.rmtree(dirs['abs_merge_dir'])
|
||||||
self.mkdir_p(dirs['abs_merge_dir'])
|
self.mkdir_p(dirs['abs_merge_dir'])
|
||||||
command = [sys.executable, 'mach', 'compare-locales',
|
command = [python, 'mach', 'compare-locales',
|
||||||
'--merge-dir', dirs['abs_merge_dir'],
|
'--merge-dir', dirs['abs_merge_dir'],
|
||||||
'--l10n-ini', os.path.join(dirs['abs_locales_src_dir'], 'l10n.ini'),
|
'--l10n-ini', os.path.join(dirs['abs_locales_src_dir'], 'l10n.ini'),
|
||||||
'--l10n-base', dirs['abs_l10n_dir'], locale]
|
'--l10n-base', dirs['abs_l10n_dir'], locale]
|
||||||
|
|
|
@ -698,7 +698,8 @@ class DesktopSingleLocale(LocalesMixin, ReleaseMixin, MockMixin, BuildbotMixin,
|
||||||
return self._mach(target=target, env=env)
|
return self._mach(target=target, env=env)
|
||||||
|
|
||||||
def _get_mach_executable(self):
|
def _get_mach_executable(self):
|
||||||
return [sys.executable, 'mach']
|
python = self.query_exe('python2.7')
|
||||||
|
return [python, 'mach']
|
||||||
|
|
||||||
def _get_make_executable(self):
|
def _get_make_executable(self):
|
||||||
config = self.config
|
config = self.config
|
||||||
|
|
|
@ -172,7 +172,8 @@ class DesktopPartnerRepacks(ReleaseMixin, BuildbotMixin, PurgeMixin,
|
||||||
|
|
||||||
def repack(self):
|
def repack(self):
|
||||||
"""creates the repacks"""
|
"""creates the repacks"""
|
||||||
repack_cmd = [sys.executable, "partner-repacks.py",
|
python = self.query_exe("python2.7")
|
||||||
|
repack_cmd = [python, "partner-repacks.py",
|
||||||
"-v", self.config['version'],
|
"-v", self.config['version'],
|
||||||
"-n", str(self.config['build_number'])]
|
"-n", str(self.config['build_number'])]
|
||||||
if self.config.get('platform'):
|
if self.config.get('platform'):
|
||||||
|
|
|
@ -78,9 +78,10 @@ class Repackage(BaseScript):
|
||||||
def repackage(self):
|
def repackage(self):
|
||||||
config = self.config
|
config = self.config
|
||||||
dirs = self.query_abs_dirs()
|
dirs = self.query_abs_dirs()
|
||||||
|
python = self.query_exe('python2.7')
|
||||||
infile = os.path.join(config['input_home'], config['input_filename'])
|
infile = os.path.join(config['input_home'], config['input_filename'])
|
||||||
outfile = os.path.join(dirs['abs_upload_dir'], config['output_filename'])
|
outfile = os.path.join(dirs['abs_upload_dir'], config['output_filename'])
|
||||||
command = [sys.executable, 'mach', '--log-no-times', 'repackage',
|
command = [python, 'mach', '--log-no-times', 'repackage',
|
||||||
'--input', infile,
|
'--input', infile,
|
||||||
'--output', outfile]
|
'--output', outfile]
|
||||||
return self.run_command(
|
return self.run_command(
|
||||||
|
@ -134,7 +135,8 @@ class Repackage(BaseScript):
|
||||||
|
|
||||||
def _run_configure(self):
|
def _run_configure(self):
|
||||||
dirs = self.query_abs_dirs()
|
dirs = self.query_abs_dirs()
|
||||||
command = [sys.executable, 'mach', '--log-no-times', 'configure']
|
python = self.query_exe('python2.7')
|
||||||
|
command = [python, 'mach', '--log-no-times', 'configure']
|
||||||
return self.run_command(
|
return self.run_command(
|
||||||
command=command,
|
command=command,
|
||||||
cwd=dirs['abs_mozilla_dir'],
|
cwd=dirs['abs_mozilla_dir'],
|
||||||
|
|
Загрузка…
Ссылка в новой задаче