From ee65407f9f09f69a81968070590c1df4907a067c Mon Sep 17 00:00:00 2001 From: yefuwang <1yefuwang1@gmail.com> Date: Thu, 26 Sep 2024 09:27:16 +0000 Subject: [PATCH] compile ninja on linux arm --- pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e16e884..435325b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,5 +18,11 @@ before-build = "yum install -y ninja-build" [[tool.cibuildwheel.overrides]] select = "*manylinux_aarch64*" +environment = {VCPKG_FORCE_SYSTEM_BINARIES="1"} # ninja-build is not installable via yum on aarch64 -before-build = "yum install -y curl zip unzip tar; python bootstrap_vcpkg.py" \ No newline at end of file +before-build = [ + "yum install -y wget curl zip unzip tar", + "wget https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux-aarch64.zip", + "unzip -q ninja-linux-aarch64.zip", + "mv ninja /usr/bin/ninja", + "python bootstrap_vcpkg.py"] \ No newline at end of file