Skip to content

Documentation: Clarify state of python static builds on Windows #597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LeonarddeR opened this issue Apr 29, 2025 · 4 comments · Fixed by #598
Closed

Documentation: Clarify state of python static builds on Windows #597

LeonarddeR opened this issue Apr 29, 2025 · 4 comments · Fixed by #598

Comments

@LeonarddeR
Copy link
Contributor

The current docs say that Windows Static Distributions are Extremely Brittle.
However, what are these static builds? For example, there is #221, basically suggesting that static Windows builds are no longer a thing, concluded with #234.
This suggests to me that the docs are not up to date at this point. Any improvement of the docs would be greatly appreciated here.

@zanieb
Copy link
Member

zanieb commented Apr 29, 2025

Yes, we removed support for these. Pull request welcome.

@LeonarddeR
Copy link
Contributor Author

Does this mean that this section can just be dropped? Or are there still some things we have to take note of when using these Python builds instead of the vanilla CPython builds?
Quick tests with nvda, for example, revealed an access violation with comtypes, though I do not yet have more details than just the reported crash.

zanieb pushed a commit that referenced this issue May 7, 2025
The docs say that [Windows Static Distributions are Extremely
Brittle](https://github.com/astral-sh/python-build-standalone/blob/main/docs/quirks.rst#windows-static-distributions-are-extremely-brittle).
However, since #234, Windows static builds no longer exist, making this
documentation obsolete.

Fixes #597
@alshdavid
Copy link

alshdavid commented May 18, 2025

Just a quick one. To add support for pip on Windows I added a pip.cmd next to python.exe with the following contents

@echo off
setlocal
"%~dp0python.exe" -m pip %*
IF %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%
endlocal

This makes pip available in the terminal.

Does this mean we won't see python builds for Windows beyond 3.14?

@zanieb
Copy link
Member

zanieb commented May 18, 2025

There are going to be Windows Python builds, they're just dynamically linked instead os statically.

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 a pull request may close this issue.

3 participants