File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments