Skip to content

Commit b1949b2

Browse files
build: use python-lzf on aarch64 to fix installation errors (#57)
Updated dependencies to handle Arm64 platform compatibility.The dependency `python-neo-lzf` does not provide pre-built wheels for aarch64 architectures. This causes installation failures with tools like `uv` or `pip` in environments lacking a C compiler, or results in extremely slow builds under QEMU emulation. This commit modifies `pyproject.toml` to use PEP 508 environment markers: - Use `python-neo-lzf` on x86_64 (unchanged). - Switch to `python-lzf` on aarch64/arm64 platforms. This ensures smoother installation and compatibility on Arm-based devices (e.g., Raspberry Pi, AWS Graviton, Apple Silicon Docker containers).
1 parent d53c5e0 commit b1949b2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ authors = [{ name = "urasakikeisuke", email = "keisuke.urasaki@map4.jp" }]
66
dependencies = [
77
"numpy>=1.21.0",
88
"pydantic >=1.10.8, <3.0.0",
9-
"python-neo-lzf>=0.3.0",
9+
# python-neo-lzf lacks pre-built wheels for aarch64 (Arm64).
10+
# To enable installation on Arm platforms without requiring compilation tools,
11+
# we switch to python-lzf for aarch64/arm64 environments.
12+
"python-neo-lzf>=0.3.0; platform_machine != 'aarch64' and platform_machine != 'arm64'",
13+
"python-lzf; platform_machine == 'aarch64' or platform_machine == 'arm64'",
1014
]
1115
readme = "README.md"
1216
requires-python = ">= 3.8.2"

0 commit comments

Comments
 (0)