File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ def read_requirements(file_path):
18
18
19
19
# Determine the package name based on the presence of an environment variable
20
20
package_name = "torchao-nightly" if os .environ .get ("TORCHAO_NIGHTLY" ) else "torchao"
21
+ version_suffix = os .getenv ("VERSION_SUFFIX" , "" )
21
22
22
23
# Version is year.month.date if using nightlies
23
24
version = current_date if package_name == "torchao-nightly" else "0.2.0"
@@ -42,7 +43,7 @@ def get_extensions():
42
43
if CUDA_HOME is None and torch .cuda .is_available ():
43
44
print ("CUDA toolkit is not available. Skipping compilation of CUDA extensions" )
44
45
print ("If you'd like to compile CUDA extensions locally please install the cudatoolkit from https://anaconda.org/nvidia/cuda-toolkit" )
45
-
46
+
46
47
use_cuda = torch .cuda .is_available () and CUDA_HOME is not None
47
48
extension = CUDAExtension if use_cuda else CppExtension
48
49
@@ -85,7 +86,7 @@ def get_extensions():
85
86
86
87
setup (
87
88
name = package_name ,
88
- version = version ,
89
+ version = version + version_suffix ,
89
90
packages = find_packages (),
90
91
include_package_data = True ,
91
92
package_data = {
You can’t perform that action at this time.
0 commit comments