Skip to content

Commit 3c8454f

Browse files
authored
Update build_wheels_windows.yml
1 parent c7354fa commit 3c8454f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,17 @@ jobs:
112112
echo %CMAKE_ARGS%
113113
114114
python setup.py bdist_wheel --py-limited-api=cp37 --dist-dir=%cd%\\wheelhouse -v
115-
for /d %%D in (build\lib*) do set BUILDDIR=%%D
116-
if exist %BUILDDIR%\cv2 (
117-
copy /Y openblas\bin\libopenblas.dll %BUILDDIR%\cv2\libopenblas.dll
118-
) else (
119-
echo [!] cv2 directory not found in %BUILDDIR%
120-
exit /b 1
115+
setlocal enabledelayedexpansion
116+
for /d %%D in (build\lib*) do (
117+
set "BUILDDIR=%%D"
118+
if exist "%%D\cv2" (
119+
copy /Y openblas\bin\libopenblas.dll "%%D\cv2\libopenblas.dll"
120+
) else (
121+
echo [!] cv2 directory not found in %%D
122+
exit /b 1
123+
)
121124
)
125+
endlocal
122126
shell: cmd
123127

124128
- name: Saving all wheels

0 commit comments

Comments
 (0)