mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont shutdown the ARM build machine as it is flaky
This commit is contained in:
parent
f2a3abed40
commit
ebb284467d
@ -52,6 +52,13 @@ def get_dist(base, which, bitness):
|
|||||||
return dist
|
return dist
|
||||||
|
|
||||||
|
|
||||||
|
def shutdown_allowed(which, bitness):
|
||||||
|
# The ARM64 VM is extremely flakey often booting up to a non-functional
|
||||||
|
# state so dont shut it down as it seems to be more stable once bootup is
|
||||||
|
# done.
|
||||||
|
return bitness != 'arm64'
|
||||||
|
|
||||||
|
|
||||||
def build_only(which, bitness, spec, shutdown=False):
|
def build_only(which, bitness, spec, shutdown=False):
|
||||||
base, bypy = get_paths()
|
base, bypy = get_paths()
|
||||||
exe = get_exe()
|
exe = get_exe()
|
||||||
@ -62,7 +69,7 @@ def build_only(which, bitness, spec, shutdown=False):
|
|||||||
raise SystemExit(ret)
|
raise SystemExit(ret)
|
||||||
dist = get_dist(base, which, bitness)
|
dist = get_dist(base, which, bitness)
|
||||||
dist = os.path.join(dist, 'c-extensions')
|
dist = os.path.join(dist, 'c-extensions')
|
||||||
if shutdown:
|
if shutdown and shutdown_allowed(which, bitness):
|
||||||
cmd = get_cmd(exe, bypy, which, bitness, action='shutdown')
|
cmd = get_cmd(exe, bypy, which, bitness, action='shutdown')
|
||||||
subprocess.Popen(cmd).wait()
|
subprocess.Popen(cmd).wait()
|
||||||
return dist
|
return dist
|
||||||
@ -87,7 +94,7 @@ def build_single(which='windows', bitness='64', shutdown=True, sign_installers=T
|
|||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
os.link(src, dest)
|
os.link(src, dest)
|
||||||
if shutdown:
|
if shutdown and shutdown_allowed(which, bitness):
|
||||||
cmd = get_cmd(exe, bypy, which, bitness, action='shutdown')
|
cmd = get_cmd(exe, bypy, which, bitness, action='shutdown')
|
||||||
subprocess.Popen(cmd).wait()
|
subprocess.Popen(cmd).wait()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user