@@ -113,37 +113,13 @@ jobs:
113113
114114 python setup.py bdist_wheel --py-limited-api=cp37 --dist-dir=%cd%\\wheelhouse -v
115115 shell : cmd
116-
117- - name : Copy OpenBLAS DLL to wheelhouse
118- run : |
119- copy openblas\bin\libopenblas.dll wheelhouse\
120- shell : cmd
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 *
135116
136- cd ..
137- rmdir /s /q tmpwhl
138- )
139- shell : cmd
140117 - name : Saving all wheels
141118 uses : actions/upload-artifact@v4
142119 with :
143120 name : wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}-${{ matrix.platform }}
144121 path : |
145122 wheelhouse/opencv*
146- wheelhouse/libopenblas.dll
147123
148124 Test :
149125 needs : [Build]
@@ -187,40 +163,20 @@ jobs:
187163 name : wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}-${{ matrix.platform }}
188164 path : wheelhouse/
189165
190- - name : Show contents of wheelhouse
191- run : |
192- echo "== wheelhouse contents =="
193- dir /b wheelhouse
194- shell : cmd
195166
196- - name : Add OpenBLAS DLL to PATH
197- run : |
198- set "PATH=${{ github.workspace }}\wheelhouse;%PATH%"
199- echo "== PATH =="
200- echo %PATH%
201- echo "== Checking for libopenblas.dll =="
202- where libopenblas.dll || (
203- echo "ERROR: libopenblas.dll not found!" & exit /b 1
204- )
205- shell : cmd
206167
207168 - name : Package installation
208169 run : |
209170 cd ${{ github.workspace }}/tests
210171 &python -m pip install --user --no-warn-script-location (ls "../wheelhouse/opencv*.whl")
211172 if ($LastExitCode -ne 0) {throw $LastExitCode}
212- $cv2_path = $(python -c "import cv2, os; print(os.path.dirname(cv2.__file__))")
213- echo $cv2_path
214173 python get_build_info.py
215174 shell : powershell
216- env :
217- PATH : ${{ github.workspace }}\wheelhouse;${{ env.PATH }}
175+
218176 - name : Run tests
219177 run : |
220178 cd ${{ github.workspace }}/opencv
221179 python modules\python\test\test.py -v --repo .
222- env :
223- PATH : ${{ github.workspace }}\wheelhouse;${{ env.PATH }}
224180
225181 - name : Pylint test
226182 run : |
0 commit comments