Skip to content

feat(windows): bundle Python runtime in Windows installer staging#256

Merged
duguwanglong merged 1 commit into
devfrom
feat/windows-packaging-bundled-python
May 12, 2026
Merged

feat(windows): bundle Python runtime in Windows installer staging#256
duguwanglong merged 1 commit into
devfrom
feat/windows-packaging-bundled-python

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

Summary

Bundles a pinned CPython from python-build-standalone into Windows staging (tools/python), wires bootstrap PATH and UV_PYTHON / related env vars, and validates the staged runtime in packaging CI.

Changes

  • versions.manifest.json: add python pin (3.12.12 + archive metadata)
  • build-staging.ps1: download/extract tarball (optional FLOCKS_PYTHON_STANDALONE_MIRROR_BASE_URL)
  • bootstrap-windows.ps1: expose bundled Python to the process and uv
  • Windows packaging workflows: require python.exe and version match
  • Tests: manifest contract + script string assertions

Testing

  • uv run pytest tests/packaging/test_windows_manifest.py tests/scripts/test_browser_runtime_configuration.py -q

Made with Cursor

…aging

- Pin CPython 3.12.12 in versions.manifest.json with standalone archive metadata
- Download and extract install-only tarball in build-staging.ps1 (mirror env support)
- Configure PATH and UV_* env vars in bootstrap-windows.ps1 for bundled Python
- Assert bundled Python in Windows packaging CI workflows
- Extend manifest and bootstrap script contract tests

Co-authored-by: Cursor <cursoragent@cursor.com>
@duguwanglong duguwanglong merged commit 002200d into dev May 12, 2026
1 check passed
duguwanglong pushed a commit that referenced this pull request May 13, 2026
…aging (#256)

- Pin CPython 3.12.12 in versions.manifest.json with standalone archive metadata
- Download and extract install-only tarball in build-staging.ps1 (mirror env support)
- Configure PATH and UV_* env vars in bootstrap-windows.ps1 for bundled Python
- Assert bundled Python in Windows packaging CI workflows
- Extend manifest and bootstrap script contract tests
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