Backed out changeset a7a7eb83f9cb (bug 1361912)

This commit is contained in:
Sebastian Hengst 2017-05-11 21:40:15 +02:00
Родитель 30c6bacec3
Коммит 683dc39c8d
29 изменённых файлов: 47 добавлений и 12 удалений

Просмотреть файл

@ -19,6 +19,7 @@ config = {
],
"buildbot_json_path": "buildprops.json",
'exes': {
'python2.7': sys.executable,
"buildbot": "/tools/buildbot/bin/buildbot",
},
'app_ini_path': '%(obj_dir)s/dist/bin/application.ini',

Просмотреть файл

@ -16,6 +16,7 @@ config = {
],
"buildbot_json_path": "buildprops.json",
'exes': {
'python2.7': sys.executable,
"buildbot": "/tools/buildbot/bin/buildbot",
},
'app_ini_path': '%(obj_dir)s/dist/bin/application.ini',

Просмотреть файл

@ -23,6 +23,7 @@ config = {
],
"buildbot_json_path": "buildprops.json",
'exes': {
'python2.7': sys.executable,
"buildbot": [
sys.executable,
'c:\\mozilla-build\\buildbotve\\scripts\\buildbot'

Просмотреть файл

@ -23,6 +23,7 @@ config = {
],
"buildbot_json_path": "buildprops.json",
'exes': {
'python2.7': sys.executable,
"buildbot": [
sys.executable,
'c:\\mozilla-build\\buildbotve\\scripts\\buildbot'

Просмотреть файл

@ -15,6 +15,7 @@ config = {
],
"buildbot_json_path": "buildprops.json",
'exes': {
'python2.7': sys.executable,
"buildbot": "/tools/buildbot/bin/buildbot",
},
'app_ini_path': '%(obj_dir)s/dist/bin/application.ini',

Просмотреть файл

@ -17,6 +17,7 @@ config = {
],
"buildbot_json_path": "buildprops.json",
'exes': {
'python2.7': sys.executable,
"buildbot": "/tools/buildbot/bin/buildbot",
},
'app_ini_path': '%(obj_dir)s/dist/bin/application.ini',

Просмотреть файл

@ -22,6 +22,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -22,6 +22,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -23,6 +23,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -23,6 +23,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -22,6 +22,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -22,6 +22,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -22,6 +22,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -22,6 +22,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -18,6 +18,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -18,6 +18,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -23,6 +23,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -23,6 +23,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -23,6 +23,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -24,6 +24,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -23,6 +23,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -23,6 +23,7 @@ config = {
'check-test',
],
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
os.path.join(

Просмотреть файл

@ -68,6 +68,7 @@ config = {
# use mozmake?
"enable_mozmake": True,
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
'c:/mozilla-build/buildbotve/virtualenv.py'

Просмотреть файл

@ -68,6 +68,7 @@ config = {
# use mozmake?
"enable_mozmake": True,
'exes': {
'python2.7': sys.executable,
'virtualenv': [
sys.executable,
'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']
if (os.path.exists(print_conf_setting_path) and
os.path.exists(app_ini_path)):
python = self.query_exe('python2.7')
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,
'App', prop
]
@ -1304,8 +1305,9 @@ or run without that action (ie: --no-{action})"
dirs['abs_app_ini_path']),
level=error_level)
self.info("Setting properties found in: %s" % dirs['abs_app_ini_path'])
python = self.query_exe('python2.7')
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'
]
properties_needed = [
@ -1642,7 +1644,7 @@ or run without that action (ie: --no-{action})"
os.path.join(dirs['abs_src_dir'], 'mach')
]
else:
mach = [sys.executable, 'mach']
mach = [self.query_exe('python2.7'), 'mach']
return_code = self.run_command_m(
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):
env = self.query_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)
self.run_command_m(
@ -1784,10 +1787,11 @@ or run without that action (ie: --no-{action})"
"""generates source archives and uploads them"""
env = self.query_build_env()
env.update(self.query_mach_build_env())
python = self.query_exe('python2.7')
dirs = self.query_abs_dirs()
self.run_command_m(
command=[sys.executable, 'mach', '--log-no-times', 'configure'],
command=[python, 'mach', '--log-no-times', 'configure'],
cwd=dirs['abs_src_dir'],
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.update(self.query_check_test_env())
python = self.query_exe('python2.7')
cmd = [
sys.executable, 'mach',
python, 'mach',
'--log-no-times',
'build',
'-v',
@ -2211,8 +2216,9 @@ or run without that action (ie: --no-{action})"
env = self.query_build_env()
env.update(self.query_mach_build_env())
python = self.query_exe('python2.7')
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'],
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):
dirs = self.query_abs_dirs()
env = self.query_l10n_env()
python = self.query_exe('python2.7')
compare_locales_error_list = list(PythonErrorList)
self.rmtree(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'],
'--l10n-ini', os.path.join(dirs['abs_locales_src_dir'], 'l10n.ini'),
'--l10n-base', dirs['abs_l10n_dir'], locale]

Просмотреть файл

@ -698,7 +698,8 @@ class DesktopSingleLocale(LocalesMixin, ReleaseMixin, MockMixin, BuildbotMixin,
return self._mach(target=target, env=env)
def _get_mach_executable(self):
return [sys.executable, 'mach']
python = self.query_exe('python2.7')
return [python, 'mach']
def _get_make_executable(self):
config = self.config

Просмотреть файл

@ -172,7 +172,8 @@ class DesktopPartnerRepacks(ReleaseMixin, BuildbotMixin, PurgeMixin,
def repack(self):
"""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'],
"-n", str(self.config['build_number'])]
if self.config.get('platform'):

Просмотреть файл

@ -78,9 +78,10 @@ class Repackage(BaseScript):
def repackage(self):
config = self.config
dirs = self.query_abs_dirs()
python = self.query_exe('python2.7')
infile = os.path.join(config['input_home'], config['input_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,
'--output', outfile]
return self.run_command(
@ -134,7 +135,8 @@ class Repackage(BaseScript):
def _run_configure(self):
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(
command=command,
cwd=dirs['abs_mozilla_dir'],