Skip to content

[Bazel] Remove dependency on system python on Windows too#1681

Merged
sbc100 merged 1 commit intoemscripten-core:mainfrom
stevenlr:bazel_hermetic_python_windows
Feb 26, 2026
Merged

[Bazel] Remove dependency on system python on Windows too#1681
sbc100 merged 1 commit intoemscripten-core:mainfrom
stevenlr:bazel_hermetic_python_windows

Conversation

@stevenlr
Copy link
Copy Markdown
Contributor

This is a followup of #1676.

Just a heads up with those changes (and the ones from #1676), things will not work anymore for projects that don't use an hermetic python toolchain because the interpreter will not be found.

Using the system python is not a great idea anyway, but I just wanted to mention that because that forced our hand in adopting the hermetic toolchain (we were planing on doing it at a later date), and I don't know if this had been considered in #1676.

@sbc100
Copy link
Copy Markdown
Collaborator

sbc100 commented Feb 26, 2026

Seems like the right direction to me. Why would one ever not want to use the hermetic python?

@sbc100 sbc100 enabled auto-merge (squash) February 26, 2026 16:50
@stevenlr
Copy link
Copy Markdown
Contributor Author

On Windows the hermetic python toolchain can be extremely slow, that's why we had avoided it until now, but functionally it's the same.

@sbc100
Copy link
Copy Markdown
Collaborator

sbc100 commented Feb 26, 2026

How is the hermetic python slower? Do you mean when its first installed? Or is the python executable somehow different/slower?

@sbc100 sbc100 merged commit d6b88f4 into emscripten-core:main Feb 26, 2026
9 checks passed
@stevenlr
Copy link
Copy Markdown
Contributor Author

It has something to do with the way the python rules build the .exes of the py_binarys. Not sure about the details, but there are open discussions about it. bazel-contrib/rules_python#1653

@stevenlr stevenlr deleted the bazel_hermetic_python_windows branch February 27, 2026 09:18
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