Skip to content

Fix Windows build: add OpenBLAS configuration to pyproject.toml#3

Closed
Copilot wants to merge 8 commits intomasterfrom
copilot/fix-wheel-building-issue
Closed

Fix Windows build: add OpenBLAS configuration to pyproject.toml#3
Copilot wants to merge 8 commits intomasterfrom
copilot/fix-wheel-building-issue

Conversation

Copy link
Contributor

Copilot AI commented Feb 18, 2026

Windows builds fail with LNK1181: cannot open input file 'openblas.lib'. Cibuildwheel prioritizes pyproject.toml over workflow environment variables, but Windows configuration was only in the workflow file.

Changes

pyproject.toml

  • Add before-all to install vcpkg and OpenBLAS
  • Add Windows environment variables:
    • EASYSBA_INCLUDE_DIRS / EASYSBA_LIBRARY_DIRS - paths for setup.py
    • INCLUDE / LIB - MSVC compiler/linker search paths
    • PATH - OpenBLAS DLLs at runtime

cibuildwheel.yml

  • Remove redundant Windows/macOS environment variables (now in pyproject.toml)
  • Optimize vcpkg cache to exclude git repo
[tool.cibuildwheel.windows]
before-all = [
    "if not exist C:\\vcpkg\\vcpkg.exe (git clone https://github.com/microsoft/vcpkg.git C:\\vcpkg && C:\\vcpkg\\bootstrap-vcpkg.bat -disableMetrics)",
    "C:\\vcpkg\\vcpkg.exe install openblas:x64-windows",
]

[tool.cibuildwheel.windows.environment]
EASYSBA_LAPACK_LIBS = "openblas"
EASYSBA_INCLUDE_DIRS = "C:\\vcpkg\\installed\\x64-windows\\include"
EASYSBA_LIBRARY_DIRS = "C:\\vcpkg\\installed\\x64-windows\\lib"
INCLUDE = "C:\\vcpkg\\installed\\x64-windows\\include"
LIB = "C:\\vcpkg\\installed\\x64-windows\\lib"
PATH = "C:\\vcpkg\\installed\\x64-windows\\bin;{PATH}"

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 7 commits February 18, 2026 22:02
Co-authored-by: alexlib <747110+alexlib@users.noreply.github.com>
Co-authored-by: alexlib <747110+alexlib@users.noreply.github.com>
Co-authored-by: alexlib <747110+alexlib@users.noreply.github.com>
Co-authored-by: alexlib <747110+alexlib@users.noreply.github.com>
Co-authored-by: alexlib <747110+alexlib@users.noreply.github.com>
Co-authored-by: alexlib <747110+alexlib@users.noreply.github.com>
Co-authored-by: alexlib <747110+alexlib@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix wheel building issue in easySBA Fix Windows build: add OpenBLAS configuration to pyproject.toml Feb 18, 2026
Copilot AI requested a review from alexlib February 18, 2026 22:08
@alexlib alexlib closed this Feb 18, 2026
@alexlib alexlib deleted the copilot/fix-wheel-building-issue branch February 18, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants