File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55from libc.stdint cimport intptr_t, uint64_t
66from libc.math cimport ceil
77
8- from enum import StrEnum
8+ import sys
9+ if sys.version_info >= (3 , 11 ):
10+ from enum import StrEnum
11+ else :
12+ from backports.strenum import StrEnum
913from multiprocessing import cpu_count
1014from typing import Iterable
1115import warnings
Original file line number Diff line number Diff line change 55
66from libc.stdint cimport intptr_t
77
8- from enum import StrEnum
8+ import sys
9+ if sys.version_info >= (3 , 11 ):
10+ from enum import StrEnum
11+ else :
12+ from backports.strenum import StrEnum
913
1014from cuda.bindings import nvml
1115
Original file line number Diff line number Diff line change @@ -186,6 +186,9 @@ numpy = "*"
186186cuda-bindings = " *"
187187cuda-pathfinder = " *"
188188
189+ [package .target .'python_version < "3 .11"' .run-dependencies ]
190+ "backports.strenum" = " *"
191+
189192[target .linux .tasks .build-cython-tests ]
190193cmd = [" $PIXI_PROJECT_ROOT/tests/cython/build_tests.sh" ]
191194
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ classifiers = [
5050dependencies = [
5151 " cuda-pathfinder >=1.4.2" ,
5252 " numpy" ,
53+ " backports.strenum; python_version < '3.11'" ,
5354]
5455
5556[project .optional-dependencies ]
You can’t perform that action at this time.
0 commit comments