diff --git a/pyproject.toml b/pyproject.toml index 0a3aab5d..c9ae9453 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -151,7 +151,12 @@ all = [ ] [build-system] -requires = ["maturin[patchelf]>=1.1,<2.0", "setuptools >= 61.0.0", "wheel"] +requires = [ + "setuptools >= 61.0.0", + "wheel", + "maturin[patchelf]>=1.1,<2.0 ; platform_system=='Linux'", + "maturin>=1.1,<2.0 ; platform_system!='Linux'", +] build-backend = "maturin"