Skip to content

ci: build Windows wheel without pip build isolation - #1161

Merged
riclarsson merged 1 commit into
atmtools:mainfrom
olemke:fix-windows-wheel
Sep 1, 2026
Merged

ci: build Windows wheel without pip build isolation#1161
riclarsson merged 1 commit into
atmtools:mainfrom
olemke:fix-windows-wheel

Conversation

@olemke

@olemke olemke commented Sep 1, 2026

Copy link
Copy Markdown
Member

The Windows CI wheel build currently fails because the pyarts-package target's python -m build creates an isolated venv, and pip re-executed inside that venv cannot load conda's OpenSSL DLLs (ImportError: DLL load failed while importing _ssl). This PR switches Windows to a build path that avoids the isolation venv entirely, while leaving Linux and macOS unchanged.

Changes

  • .github/workflows/build-test.yml: On Windows, build pyarts_cpp and then run python -m build --no-isolation directly in build/python, bypassing the isolation venv that breaks DLL loading. Linux and macOS keep the original pyarts-package target.

The pyarts-package target's `python -m build` creates an isolated
venv on Windows, and pip re-executed inside that venv cannot load
conda's OpenSSL DLLs (`ImportError: DLL load failed while importing
_ssl`), breaking the wheel build.

On Windows, build pyarts_cpp and run `python -m build
--no-isolation` directly in build/python instead, which avoids the
isolation venv entirely. Linux and macOS keep the original
pyarts-package target. Both `python-build` and `setuptools>=77` are
already pinned in environment-dev-win.yml, as required for
--no-isolation.
@riclarsson
riclarsson merged commit d1a59a9 into atmtools:main Sep 1, 2026
9 checks passed
@olemke
olemke deleted the fix-windows-wheel branch September 1, 2026 11:44
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