diff --git a/CHANGELOG.md b/CHANGELOG.md index ce3a9dfd..3e5995b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ## OpenBLAS v0.3.34 (v0.3.34) +### 0.3.34.481.6 (2026-11-30) + +- Use the correct lapack headers for windows builds (function names with + extensions) + ### 0.3.34.481.5 (2026-11-30) - Patch threading in gesv on win-arm64 diff --git a/pyproject.toml b/pyproject.toml index f0ff9525..772f6c7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta" [project] name = "scipy-openblas64" # 0.3.34-481-g5137bb62 -version = "0.3.34.481.5" +version = "0.3.34.481.6" requires-python = ">=3.7" description = "Provides OpenBLAS for python packaging" readme = "README.md" diff --git a/tools/build_steps_win.bat b/tools/build_steps_win.bat index 3c32ceaa..107cda9e 100755 --- a/tools/build_steps_win.bat +++ b/tools/build_steps_win.bat @@ -322,17 +322,25 @@ if not exist "%DEST_DIR%\lib\cmake\openblas\OpenBLASConfig.cmake" ( ) if exist openblasconfigversion.cmake copy /Y openblasconfigversion.cmake "%DEST_DIR%\lib\cmake\openblas\" +REM Copy LAPACKE header files first: the generated directory below contains +REM lapacke.h and lapack.h rewritten with SYMBOLPREFIX/SYMBOLSUFFIX, which +REM must overwrite these unmodified netlib copies, not the other way around. +echo Copying LAPACKE header files... +xcopy /Y "..\lapack-netlib\lapacke\include\*.h" "%DEST_DIR%\include\" +if errorlevel 1 exit /b 1 + REM Copy header files echo Copying generated header files... if exist generated xcopy /E /Y generated "%DEST_DIR%\include\" if exist lapacke_mangling.h copy /Y lapacke_mangling.h "%DEST_DIR%\include\" if exist openblas_config.h copy /Y openblas_config.h "%DEST_DIR%\include\" - -REM Copy LAPACKE header files -echo Copying LAPACKE header files... -xcopy /Y "..\lapack-netlib\lapacke\include\*.h" "%DEST_DIR%\include\" -if errorlevel 1 exit /b 1 +REM Make sure the shipped lapacke.h uses the prefixed names the library exports +findstr /c:"scipy_LAPACKE_dgesv" "%DEST_DIR%\include\lapacke.h" >NUL +if errorlevel 1 ( + echo Error: lapacke.h in %DEST_DIR%\include does not use the scipy_ prefix. + exit /b 1 +) echo Create pkgconfig scipy-openblas.pc if not exist "%DEST_DIR%\lib\pkgconfig" mkdir "%DEST_DIR%\lib\pkgconfig"