This repository was archived by the owner on May 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 46
46
run :
47
47
shell : pwsh
48
48
env :
49
+ PYPI_CUDA_VERSION : " 12.1.1"
49
50
CUDA_VERSION : ${{ matrix.cuda }}
50
51
51
52
steps :
@@ -106,6 +107,11 @@ jobs:
106
107
$env:CUDA_PATH = $env:CONDA_PREFIX
107
108
$env:CUDA_HOME = $env:CONDA_PREFIX
108
109
110
+ # Only add +cu118 to wheel if not releasing on PyPi
111
+ if ( $env:CUDA_VERSION -eq $env:PYPI_CUDA_VERSION ){
112
+ $env:PYPI_BUILD = 1
113
+ }
114
+
109
115
python setup.py sdist bdist_wheel
110
116
111
117
- name : Upload Assets
Original file line number Diff line number Diff line change 8
8
os .environ ["CC" ] = "g++"
9
9
os .environ ["CXX" ] = "g++"
10
10
AUTOAWQ_KERNELS_VERSION = "0.0.1"
11
-
12
- try :
13
- CUDA_VERSION = "" .join (os .environ .get ("CUDA_VERSION" , torch .version .cuda ).split ("." ))[:3 ]
14
- AUTOAWQ_KERNELS_VERSION += f"+cu{ CUDA_VERSION } "
15
- except Exception as ex :
16
- raise RuntimeError ("Your system must have an Nvidia GPU for installing AutoAWQ" )
11
+ PYPI_BUILD = os .getenv ("PYPI_BUILD" , "0" ) == "1"
12
+
13
+ if not PYPI_BUILD :
14
+ try :
15
+ CUDA_VERSION = "" .join (os .environ .get ("CUDA_VERSION" , torch .version .cuda ).split ("." ))[:3 ]
16
+ AUTOAWQ_KERNELS_VERSION += f"+cu{ CUDA_VERSION } "
17
+ except Exception as ex :
18
+ raise RuntimeError ("Your system must have an Nvidia GPU for installing AutoAWQ" )
17
19
18
20
common_setup_kwargs = {
19
21
"version" : AUTOAWQ_KERNELS_VERSION ,
You can’t perform that action at this time.
0 commit comments