Skip to content

Commit

Permalink
bump subcommand timeout on arm and riscv, in one place
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Apr 29, 2024
1 parent 5b66f26 commit e914616
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ def pkg_config_version(req_version, pkgname):
ARM = ARCH.startswith("arm") or ARCH.startswith("aarch")
RISCV = ARCH.startswith("riscv")
print(f"{ARCH=}")
TIMEOUT = 60
if ARM or RISCV:
# arm64 and riscv builds run on emulated CPU, very slowly
TIMEOUT = 300


INCLUDE_DIRS = os.environ.get("INCLUDE_DIRS", os.path.join(sys.prefix, "include")).split(os.pathsep)
if os.environ.get("INCLUDE_DIRS", None) is None and not WIN32:
Expand Down Expand Up @@ -580,7 +585,7 @@ def convert_doc(fsrc: str, fdst: str, fmt="html", force=False):
cmd = [pandoc, "--from", "commonmark", "--to", fmt, "-o", fdst, fsrc]
if fmt=="html" and pandoc_lua_ENABLED:
cmd += ["--lua-filter", "./fs/bin/links-to-html.lua"]
r = subprocess.Popen(cmd).wait(120)
r = subprocess.Popen(cmd).wait(TIMEOUT)
assert r==0, "'%s' returned %s" % (" ".join(cmd), r)


Expand Down Expand Up @@ -1366,7 +1371,7 @@ def clean():

def add_build_info(*args):
cmd = [sys.executable, "./fs/bin/add_build_info.py"]+list(args)
r = subprocess.Popen(cmd).wait(120)
r = subprocess.Popen(cmd).wait(TIMEOUT)
assert r==0, "'%s' returned %s" % (" ".join(cmd), r)


Expand Down

0 comments on commit e914616

Please sign in to comment.