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 1212from skbuild import setup
1313
1414INSTALL_REQUIRES = [
15- "torch{}" .format (os .getenv ("TORCH_VERSION_SPECIFIER" , ">=1.9" )),
15+ "torch{}" .format (os .getenv ("TORCH_VERSION_SPECIFIER" , ">=1.9,<2.7 " )),
1616 "torchvision" ,
1717 "scipy" ,
1818 "requests>=2.25,<3" ,
1919 "numpy>=1.22" ,
2020 "protobuf>=4.21.6" ,
2121]
2222
23-
2423def get_version () -> str :
25- """Get the package version."""
24+ """Get the package version for CUDA enabled wheels ."""
2625 version_path = os .path .join (os .path .dirname (__file__ ), "src" , "aihwkit" , "VERSION.txt" )
2726 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' , '' ) } "
3029
3130def get_long_description () -> str :
3231 """Get the package long description."""
You can’t perform that action at this time.
0 commit comments