Skip to content

Commit 9b1f081

Browse files
committed
Fix building on ARM64 windows
Closes #240
1 parent 12a80fa commit 9b1f081

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ requires = [
3333
# relies on. So constrained to an older version until we figure out a
3434
# workaround. See comment at
3535
# https://github.com/pypa/pip/issues/11859#issuecomment-2132287974.
36-
"setuptools<69.0.0",
36+
"setuptools<69.0.0; sys_platform != 'win32' or platform_machine != 'ARM64'",
37+
# building for ARM64 windows requires setuptools 74, which unfortunately
38+
# means --config-settings=--build-option won't work with it, but it's better
39+
# than not building at all.
40+
"setuptools>=74.0.0; sys_platform == 'win32' and platform_machine == 'ARM64'",
3741
]
3842
# Need to use legacy backend because setup_zstd.py breaks build isolation.
3943
build-backend = "setuptools.build_meta:__legacy__"

0 commit comments

Comments
 (0)