From 0f0b30400814b9a6a841da494d998e213c865104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20And=C3=A9n?= Date: Tue, 3 Sep 2024 23:08:44 +0200 Subject: [PATCH] py: fix archs for wheels --- python/finufft/pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/finufft/pyproject.toml b/python/finufft/pyproject.toml index 1ca76252e..634a27444 100644 --- a/python/finufft/pyproject.toml +++ b/python/finufft/pyproject.toml @@ -60,7 +60,7 @@ build-verbosity = 1 skip = "pp* *musllinux*" test-requires = ["pytest", "pytest-mock"] test-command = "pytest {project}/python/finufft/test" -config-settings = {"cmake.define.FINUFFT_ARCH_FLAGS" = "", "cmake.define.CMAKE_VERBOSE_MAKEFILE" = "ON"} +config-settings = {"cmake.define.FINUFFT_ARCH_FLAGS" = "-march=x86_64", "cmake.define.CMAKE_VERBOSE_MAKEFILE" = "ON"} [tool.cibuildwheel.linux] archs = "x86_64" @@ -72,3 +72,7 @@ before-build = "pip install delvewheel" # CIBW doesn't do vendoring of DLLs on Windows by default, so we have to # install delvewheel and run it. repair-wheel-command = "delvewheel repair -v --analyze-existing -w {dest_dir} {wheel}" + +[[tool.cibuildwheel.overrides]] +select = "*arm64*" +config-settings = {"cmake.define.FINUFFT_ARCH_FLAGS" = "-march=arm64"}