From 21920a34bc00a114e430e1943e1fd1f572880919 Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Tue, 10 Dec 2024 20:03:35 +0800 Subject: [PATCH] Add platform-specific constraints to setup.cfg (#8260) Fixes #8258 ### Description Include platform_system conditions for dependencies in setup.cfg ### Types of changes - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- setup.cfg | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/setup.cfg b/setup.cfg index ecfd717aff..0c69051218 100644 --- a/setup.cfg +++ b/setup.cfg @@ -61,10 +61,10 @@ all = tqdm>=4.47.0 lmdb psutil - cucim-cu12; python_version >= '3.9' and python_version <= '3.10' + cucim-cu12; platform_system == "Linux" and python_version >= '3.9' and python_version <= '3.10' openslide-python - tifffile - imagecodecs + tifffile; platform_system == "Linux" or platform_system == "Darwin" + imagecodecs; platform_system == "Linux" or platform_system == "Darwin" pandas einops transformers>=4.36.0, <4.41.0; python_version <= '3.10' @@ -78,7 +78,7 @@ all = pynrrd pydicom h5py - nni + nni; platform_system == "Linux" and "arm" not in platform_machine and "aarch" not in platform_machine optuna onnx>=1.13.0 onnxruntime; python_version <= '3.10' @@ -116,13 +116,13 @@ lmdb = psutil = psutil cucim = - cucim-cu12 + cucim-cu12; platform_system == "Linux" and python_version >= '3.9' and python_version <= '3.10' openslide = openslide-python tifffile = - tifffile + tifffile; platform_system == "Linux" or platform_system == "Darwin" imagecodecs = - imagecodecs + imagecodecs; platform_system == "Linux" or platform_system == "Darwin" pandas = pandas einops = @@ -152,7 +152,7 @@ pydicom = h5py = h5py nni = - nni + nni; platform_system == "Linux" and "arm" not in platform_machine and "aarch" not in platform_machine optuna = optuna onnx =