Skip to content

Commit 21920a3

Browse files
authored
Add platform-specific constraints to setup.cfg (#8260)
Fixes #8258 ### Description Include platform_system conditions for dependencies in setup.cfg ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [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 <[email protected]>
1 parent e604d18 commit 21920a3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

setup.cfg

+8-8
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ all =
6161
tqdm>=4.47.0
6262
lmdb
6363
psutil
64-
cucim-cu12; python_version >= '3.9' and python_version <= '3.10'
64+
cucim-cu12; platform_system == "Linux" and python_version >= '3.9' and python_version <= '3.10'
6565
openslide-python
66-
tifffile
67-
imagecodecs
66+
tifffile; platform_system == "Linux" or platform_system == "Darwin"
67+
imagecodecs; platform_system == "Linux" or platform_system == "Darwin"
6868
pandas
6969
einops
7070
transformers>=4.36.0, <4.41.0; python_version <= '3.10'
@@ -78,7 +78,7 @@ all =
7878
pynrrd
7979
pydicom
8080
h5py
81-
nni
81+
nni; platform_system == "Linux" and "arm" not in platform_machine and "aarch" not in platform_machine
8282
optuna
8383
onnx>=1.13.0
8484
onnxruntime; python_version <= '3.10'
@@ -116,13 +116,13 @@ lmdb =
116116
psutil =
117117
psutil
118118
cucim =
119-
cucim-cu12
119+
cucim-cu12; platform_system == "Linux" and python_version >= '3.9' and python_version <= '3.10'
120120
openslide =
121121
openslide-python
122122
tifffile =
123-
tifffile
123+
tifffile; platform_system == "Linux" or platform_system == "Darwin"
124124
imagecodecs =
125-
imagecodecs
125+
imagecodecs; platform_system == "Linux" or platform_system == "Darwin"
126126
pandas =
127127
pandas
128128
einops =
@@ -152,7 +152,7 @@ pydicom =
152152
h5py =
153153
h5py
154154
nni =
155-
nni
155+
nni; platform_system == "Linux" and "arm" not in platform_machine and "aarch" not in platform_machine
156156
optuna =
157157
optuna
158158
onnx =

0 commit comments

Comments
 (0)