Support pyodide xbuildenv install-emscripten on Windows#322
Support pyodide xbuildenv install-emscripten on Windows#322Andrej730 wants to merge 2 commits intopyodide:mainfrom
pyodide xbuildenv install-emscripten on Windows#322Conversation
9a13886 to
a5bf3dd
Compare
agriyakhetarpal
left a comment
There was a problem hiding this comment.
Neat! We don't have CI for Windows running here, so would you be keen to add it to the matrix and check if everything is good?
The Windows machine I have is pretty old, so all I can do is trust what the CI says.
|
Thanks! I will review this more carefully when I have time, but overall it looks okay. One question: which compilers are you using in Windows to build the Python package for Pyodide? We only proxy |
@ryanking13 I assume it's not related to the Emscripten installation being done here because we fetch precompiled binaries of the SDK, but in general, I'd agree, MSVC is another pile of mess with its massive and tangled collection of differences from |
|
Fixed the failing tests, should be good now.
I'll try to find some time to set it up, tried to run
I mainly was doing just tests with building pyodide packages on Windows, I wasn't building anything production-ready on Windows yet. But the intention is to, ideally, establish a way to build pyodide package on Windows without mingw/cygwin/wsl subsystem. Was hacking something with pyodide-build yesterday and it seems the best shot at this is to use class UnixBuildExt(build_ext):
def finalize_options(self):
super().finalize_options()
if sys.platform == 'win32':
# Override compiler type before it's instantiated
self.compiler = 'unix' |
Yes, that would be ideal. It would be great if we can add windows support without changing things too much and without having complex compatibility layers. |
|
(Closed by mistake) |
Hi! Added support for running
pyodide xbuildenv install-emscriptencommand on Windows.