Skip to content

Commit a66914a

Browse files
authored
Update build_wheels_windows.yml
1 parent a242a41 commit a66914a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -188,28 +188,21 @@ jobs:
188188

189189
- name: Package installation
190190
run: |
191-
# Copy DLL next to cv2.pyd (Python 3.8+ needs this)
192-
$cv2_path = python -c "import cv2; import os; print(os.path.dirname(cv2.__file__))"
193-
Copy-Item "${{ github.workspace }}\wheelhouse\libopenblas.dll" "$cv2_path\libopenblas.dll"
194191
cd ${{ github.workspace }}/tests
195192
&python -m pip install --user --no-warn-script-location (ls "../wheelhouse/opencv*.whl")
196193
if ($LastExitCode -ne 0) {throw $LastExitCode}
197194
python get_build_info.py
198195
shell: powershell
199196
env:
200197
PATH: ${{ github.workspace }}\wheelhouse;${{ env.PATH }}
198+
PYTHONPATH: ${{ github.workspace }}\wheelhouse;${{ env.PYTHONPATH }}
201199
- name: Run tests
202200
run: |
203-
# Find cv2 install path
204-
$cv2_path = python -c "import cv2; import os; print(os.path.dirname(cv2.__file__))"
205-
206-
# Copy DLL next to cv2.pyd
207-
Copy-Item "${{ github.workspace }}\wheelhouse\libopenblas.dll" "$cv2_path\libopenblas.dll"
208-
209201
cd ${{ github.workspace }}/opencv
210202
python modules\python\test\test.py -v --repo .
211203
env:
212204
PATH: ${{ github.workspace }}\wheelhouse;${{ env.PATH }}
205+
PYTHONPATH: ${{ github.workspace }}\wheelhouse;${{ env.PYTHONPATH }}
213206

214207
- name: Pylint test
215208
run: |

0 commit comments

Comments
 (0)