File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 12
12
from skbuild import setup
13
13
14
14
INSTALL_REQUIRES = [
15
- "torch{}" .format (os .getenv ("TORCH_VERSION_SPECIFIER" , ">=1.9" )),
15
+ "torch{}" .format (os .getenv ("TORCH_VERSION_SPECIFIER" , ">=1.9,<2.7 " )),
16
16
"torchvision" ,
17
17
"scipy" ,
18
18
"requests>=2.25,<3" ,
19
19
"numpy>=1.22" ,
20
20
"protobuf>=4.21.6" ,
21
21
]
22
22
23
-
24
23
def get_version () -> str :
25
- """Get the package version."""
24
+ """Get the package version for CUDA enabled wheels ."""
26
25
version_path = os .path .join (os .path .dirname (__file__ ), "src" , "aihwkit" , "VERSION.txt" )
27
26
with open (version_path , encoding = "utf-8" ) as version_file :
28
- return version_file .read ().strip ()
29
-
27
+ v = version_file .read ().strip ()
28
+ return f" { v } { os . getenv ( 'AIHWKIT_VERSION_SUFFIX' , '' ) } "
30
29
31
30
def get_long_description () -> str :
32
31
"""Get the package long description."""
You can’t perform that action at this time.
0 commit comments