Skip to content

Commit 6552c77

Browse files
authored
Repair Windows wheels (#673)
* repair windows wheel * declare cuda as namespace package
1 parent 19c4169 commit 6552c77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build-wheel.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ jobs:
7676
CIBW_BUILD: ${{ env.CIBW_BUILD }}
7777
CIBW_ARCHS_LINUX: "native"
7878
CIBW_BUILD_VERBOSITY: 1
79+
CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel"
80+
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair --namespace-pkg cuda -w {dest_dir} {wheel}"
7981
with:
8082
package-dir: ./cuda_core/
8183
output-dir: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
@@ -124,6 +126,8 @@ jobs:
124126
CUDA_HOME="$(cygpath -w ${{ env.CUDA_PATH }})"
125127
LIB="${CUDA_HOME}\\lib\\x64;${LIB}"
126128
CUDA_BINDINGS_PARALLEL_LEVEL=${{ env.CUDA_BINDINGS_PARALLEL_LEVEL }}
129+
CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel"
130+
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair --namespace-pkg cuda -w {dest_dir} {wheel}"
127131
with:
128132
package-dir: ./cuda_bindings/
129133
output-dir: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}

0 commit comments

Comments
 (0)