Skip to content

Commit ea199ff

Browse files
authored
Update build_wheels_windows.yml
1 parent ad20fe5 commit ea199ff

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
@@ -89,11 +89,6 @@ jobs:
8989
9090
set "OpenBLAS_HOME=%CD%"
9191
set "PATH=%OpenBLAS_HOME%\bin;%PATH%"
92-
powershell -Command "$cfg = 'lib/cmake/openblas/OpenBLASConfig.cmake'; $inc = (Join-Path $env:OpenBLAS_HOME 'include') -replace '\\','/'; $lib = (Join-Path $env:OpenBLAS_HOME 'lib/libopenblas.lib') -replace '\\','/'; $txt = Get-Content $cfg -Raw; $txt = $txt -replace 'SET\(OpenBLAS_INCLUDE_DIRS\s+.*?\)', 'SET(OpenBLAS_INCLUDE_DIRS ' + \"`\"$inc`\"\" + ')'; $txt = $txt -replace 'SET\(OpenBLAS_LIBRARIES\s+.*?\)', 'SET(OpenBLAS_LIBRARIES ' + \"`\"$lib`\"\" + ')'; Set-Content $cfg $txt"
93-
94-
type D:\a\opencv-python\opencv-python\openblas\lib\cmake\openblas\OpenBLASConfig.cmake
95-
96-
9792
if exist %OpenBLAS_HOME%\bin\libopenblas.dll (
9893
copy /y %OpenBLAS_HOME%\bin\libopenblas.dll %OpenBLAS_HOME%\bin\libopenblas.exp.dll
9994
)
@@ -112,10 +107,8 @@ jobs:
112107
python -m pip install --upgrade setuptools
113108
python -m pip install cmake==3.24.2
114109
python -m pip install toml && python -c "import toml; c = toml.load('pyproject.toml'); print('\n'.join(c['build-system']['requires']))" >> requirements.txt | python -m pip install -r requirements.txt
115-
set "CI_BUILD=1"
116-
set "OpenBLAS_HOME=${{ github.workspace }}\\openblas"
117-
set "PATH=%OpenBLAS_HOME%\\bin;%PATH%"
118-
set "CMAKE_ARGS=-DLAPACK=ON -DOpenBLAS_INCLUDE_DIR=%OpenBLAS_HOME%\\include -DOpenBLAS_LIBRARIES=%OpenBLAS_HOME%\\lib\\libopenblas.lib"
110+
111+
set "CMAKE_ARGS=-DLAPACK=ON -DOpenBLAS_INCLUDE_DIR=%OpenBLAS_HOME%\include -DOpenBLAS_LIBRARIES=%OpenBLAS_HOME%\lib\libopenblas.lib"
119112
python setup.py bdist_wheel --py-limited-api=cp37 --dist-dir=%cd%\\wheelhouse -v
120113
shell: cmd
121114

0 commit comments

Comments
 (0)