Skip to content

Commit 6bc318a

Browse files
authored
Update build_wheels_windows.yml
1 parent 89455db commit 6bc318a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,18 +190,25 @@ jobs:
190190
cd ${{ github.workspace }}/tests
191191
&python -m pip install --user --no-warn-script-location (ls "../wheelhouse/opencv*.whl")
192192
if ($LastExitCode -ne 0) {throw $LastExitCode}
193+
# Copy DLL next to cv2.pyd (Python 3.8+ needs this)
194+
$cv2_path = python -c "import cv2; import os; print(os.path.dirname(cv2.__file__))"
195+
Copy-Item "${{ github.workspace }}\wheelhouse\libopenblas.dll" "$cv2_path\libopenblas.dll"
193196
python get_build_info.py
194197
shell: powershell
195198
env:
196199
PATH: ${{ github.workspace }}\wheelhouse;${{ env.PATH }}
197-
PYTHONPATH: ${{ github.workspace }}\wheelhouse;${{ env.PYTHONPATH }}
198200
- name: Run tests
199201
run: |
202+
# Find cv2 install path
203+
$cv2_path = python -c "import cv2; import os; print(os.path.dirname(cv2.__file__))"
204+
205+
# Copy DLL next to cv2.pyd
206+
Copy-Item "${{ github.workspace }}\wheelhouse\libopenblas.dll" "$cv2_path\libopenblas.dll"
207+
200208
cd ${{ github.workspace }}/opencv
201209
python modules\python\test\test.py -v --repo .
202210
env:
203211
PATH: ${{ github.workspace }}\wheelhouse;${{ env.PATH }}
204-
PYTHONPATH: ${{ github.workspace }}\wheelhouse;${{ env.PYTHONPATH }}
205212

206213
- name: Pylint test
207214
run: |

0 commit comments

Comments
 (0)