Skip to content

Commit

Permalink
#3532 better arch detection on MSYS2 aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 29, 2024
1 parent 7cf3f9e commit d4b078e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ def pkg_config_version(req_version: str, pkgname: str) -> bool:
argv.remove("--minimal")
DEFAULT = False
skip_build = "--skip-build" in argv
ARCH = get_status_output(["uname", "-m"])[1].strip("\n\r")
ARCH = os.environ.get("MSYSTEM_CARCH", "") or get_status_output(["uname", "-m"])[1].strip("\n\r")
ARM = ARCH.startswith("arm") or ARCH.startswith("aarch")
RISCV = ARCH.startswith("riscv")
print(f"ARCH={ARCH}")
TIMEOUT = 60
if ARM or RISCV:
# arm64 and riscv builds run on emulated CPU, very slowly
TIMEOUT = 300
TIMEOUT = 600


INCLUDE_DIRS = os.environ.get("INCLUDE_DIRS", os.path.join(sys.prefix, "include")).split(os.pathsep)
Expand Down

0 comments on commit d4b078e

Please sign in to comment.