diff --git a/pyproject.toml b/pyproject.toml index 69af99a483..07633c5716 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,8 @@ requires-python = ">=3.10" dependencies = [ "cachetools", "decorator<=4.4.2", - "mpi4py", + "mpi4py>3; python_version >= '3.13'", + "mpi4py; python_version < '3.13'", "h5py", "petsc4py", "numpy", @@ -91,7 +92,8 @@ requires = [ "pybind11", "pkgconfig", "numpy", - "mpi4py", + "mpi4py>3; python_version >= '3.13'", + "mpi4py; python_version < '3.13'", "petsc4py", "rtree>=1.2", ]