-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Pyo3 is built with wrong config when building for 3.13t
with abi3
and generate-import-lib
both enabled
#2385
Comments
It seems that the combination of |
No, |
Feel free to investigate and send PRs to fix it, I don't have much experience developing on Windows, help appreciated! |
Hello! Do you think this is related to this error?
It started appearing after updating pyo3 from 0.20 to 0.23. Otherwise, I can create a new issue Thanks! |
@CastilloDel That was a pyo3 bug, fixed in PyO3/pyo3#4806 |
Perfect! Thanks a lot! |
Bug Description
When debugging #2368, I notice that if both of
abi3
andgenerate-import-lib
are enabled,maturin build -i 3.13t
doesn't generatePYO3_CONFIG_FILE
forpyo3-build-config
to read andpyo3
will be built with whatever python interpreter it can find fromPATH
.Your maturin version (
maturin --version
)maturin 1.7.8
Your Python version (
python -V
)Python 3.12.7
Your pip version (
pip -V
)pip 24.2
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
abi3
andgenerate-import-lib
featuresGILProtected
which is not available in free-threaded python3.13t
maturin build -i 3.13t
(Python 3.13t not installed sopyo3
can't find interpreter fromPATH
)Expected: compilation error
4. Remove
abi3
feature, compilation fails as expectedThe text was updated successfully, but these errors were encountered: