Skip to content

Commit a267cf6

Browse files
committed
compile ninja on linux arm
1 parent 3114a5e commit a267cf6

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

pyproject.toml

+28-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,41 @@ build-backend = "setuptools.build_meta"
77
test-requires = ["pytest", "numpy", "apsw>=3.46"]
88
# --import-mode=importlib forces pytest to use installed packages instead of the local source code
99
test-command = "pytest --import-mode=importlib {project}/bindings/python/vectorlite_py/test"
10-
skip = ["*-win32", "*-win_arm64", "*-manylinux_i686", "*musllinux*", "pp*", "cp36*", "cp37*", "cp38*", "cp39*"]
10+
skip = [
11+
"*-win32",
12+
"*-win_arm64",
13+
"*-manylinux_i686",
14+
"*musllinux*",
15+
"pp*",
16+
"cp36*",
17+
"cp37*",
18+
"cp38*",
19+
"cp39*",
20+
]
1121

1222
[tool.cibuildwheel.macos]
13-
environment = {MACOSX_DEPLOYMENT_TARGET = "10.15"} # 10.15 is the minimum version that fully supports c++17
23+
environment = { MACOSX_DEPLOYMENT_TARGET = "10.15" } # 10.15 is the minimum version that fully supports c++17
1424

1525
# todo: support musllinux
1626
[tool.cibuildwheel.linux]
1727
before-build = "yum install -y ninja-build"
1828

1929
[[tool.cibuildwheel.overrides]]
2030
select = "*manylinux_aarch64*"
31+
environment = { VCPKG_FORCE_SYSTEM_BINARIES = "1" }
2132
# ninja-build is not installable via yum on aarch64
22-
before-build = "yum install -y curl zip unzip tar; python bootstrap_vcpkg.py"
33+
# before-build = [
34+
# "yum install -y wget curl zip unzip tar",
35+
# "wget https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux-aarch64.zip",
36+
# "unzip -q ninja-linux-aarch64.zip",
37+
# "mv ninja /usr/bin/ninja",
38+
# "python bootstrap_vcpkg.py"]
39+
40+
before-build = [
41+
"yum update",
42+
"yum install -y curl zip unzip tar",
43+
"git clone https://github.com/ninja-build/ninja.git",
44+
"cd ninja && python3 configure.py --bootstrap",
45+
"mv ninja /usr/bin/ && cd .. && rm -rf ninja",
46+
"python bootstrap_vcpkg.py",
47+
]

0 commit comments

Comments
 (0)