Skip to content

Commit cbdc64e

Browse files
authored
Update build_wheels_windows.yml
1 parent 37eef63 commit cbdc64e

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,25 @@ jobs:
118118
run: |
119119
copy openblas\bin\libopenblas.dll wheelhouse\
120120
shell: cmd
121-
121+
- name: Inject libopenblas.dll into .whl
122+
run: |
123+
for %%F in (wheelhouse\opencv_python*.whl) do (
124+
echo Processing %%F
125+
mkdir tmpwhl
126+
cd tmpwhl
127+
tar -xf ..\%%F
128+
129+
echo Copying libopenblas.dll into cv2/
130+
copy ..\wheelhouse\libopenblas.dll cv2\
131+
132+
echo Repacking wheel
133+
del ..\%%F
134+
tar -cf ..\%%F *
135+
136+
cd ..
137+
rmdir /s /q tmpwhl
138+
)
139+
shell: cmd
122140
- name: Saving all wheels
123141
uses: actions/upload-artifact@v4
124142
with:
@@ -193,7 +211,6 @@ jobs:
193211
if ($LastExitCode -ne 0) {throw $LastExitCode}
194212
$cv2_path = $(python -c "import cv2, os; print(os.path.dirname(cv2.__file__))")
195213
echo $cv2_path
196-
Copy-Item "${{ github.workspace }}\wheelhouse\libopenblas.dll" "$cv2_path\libopenblas.dll"
197214
python get_build_info.py
198215
shell: powershell
199216
env:

0 commit comments

Comments
 (0)