-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
Can't cross compile to windows "cannot set a minimum Python version 3.8 higher than the interpreter version 3.7" #2436
Comments
I think it's gonna be hard for anyone else to reproduce it, so this is going to take time to resolve unless you're interested in investigating further. Anyway, what's the version of |
It's 3.12.3, as I wrote in the issue. I can reproduce it easily with docker in a small project (and a different python version 3.11). You can find it here: https://github.com/CastilloDel/MaturinBug . Just running For my case, I'm also installing some mingw dependencies that were needed for the croscompilation, so I wouldn't expect this example to fully work, but it reproduces the error (and I don't think it's related to the mingw deps). I hope this helps you reproduce it! |
Thanks, that was helpful, this should be fixed in #2437. |
In the meantime, I think you can workaround it by setting |
Thanks to you!
I actually had already tried this. It doesn't seem to work in my project or in the example I made. |
Bug Description
I have a crate that I'm trying to cross compile to windows using:
and it fails with
Some relevant parts of the Cargo.toml:
It seems very misleading, because it mentions python3.7, when I'm not using or specifying that version anywhere. It seems that while it says
Not using a specific python interpreter (automatically generating windows import library)
it's using 3.7 to some extent under the hood. The same configuration used to work with a lower version of PyO3, I'm not sure if I should report it there.Your maturin version (
maturin --version
)1.8.1
Your Python version (
python -V
)Python 3.12.3
Your pip version (
pip -V
)pip 24.0
What bindings you're using
pyo3
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
maturin build --target x86_64-pc-windows-gnu --release
The text was updated successfully, but these errors were encountered: