-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
Better support for cross compiling to Windows #830
Comments
Hi! I've been using maturin to cross-compile PyO3 extension modules to Windows (MinGW) for years now. I think option 2 is not really needed because there are no libc version issues with MinGW and the default As for option 3, I think I should push for As for what
|
Ideally it should work for cross compiling from macOS/Linux to Windows. I assume cross compile from Linux to Windows works for you already? |
Yes, cross-compiling from Linux works fine. I don't know anything about MacOS though, so I just assumed that the |
For I'm not sure about |
I believe this is how PyO3 itself can handle cross-compilation without |
OK, let's see what the CI says for #847 |
Unfortunately it seems that pyo3 handles abi3 wheel cross compiling badly when cc @davidhewitt |
Hmm, it is interesting that its the Linux-to-Linux cross-compilation that fails, not Linux-to-Windows. Also I think #824 should be solved before |
Well, I'm not sure how to solve #824, you're welcome to try :-). |
Think this should work now with |
Is there anything left on the TODO list? If there are some issues I haven't encountered yet, I could try to work on them in my free time. I'm particularly interested in cross-compiling to Windows to avoid dealing with Windows docker images and non-free MSVC tools. |
@ravenexp I want to integrate |
|
I've started working on it in PyO3/python3-dll-a#18. Is there an easy way to detect that |
No env vars right now but I think we should add one. And we should support both |
--zig
I think.Even with abi3 an interpreter is required on Windows, maybe we can use something like the python3-dll-a project to generate an Windows import library forResolved in pyo3-build-config: Addpython3.dll
automatically.python3-dll-a
crate support pyo3#2282The text was updated successfully, but these errors were encountered: