Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: publish python3.13t free-threaded wheel #5387

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

XmchxUp
Copy link
Contributor

@XmchxUp XmchxUp commented Dec 4, 2024

Which issue does this PR close?

Closes #5383.

Hi @messense, is it necessary to use [pymodule(gil_used = false)], or will maturin set it automatically? Or does adding it not break backward compatibility?

@messense
Copy link
Member

messense commented Dec 4, 2024

See https://pyo3.rs/v0.23.2/free-threading.html?highlight=gil_used#supporting-free-threaded-python-with-pyo3

Copy link
Member

@messense messense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to either enable generate-import-lib feature of pyo3 or use https://github.com/Quansight-Labs/setup-python to install a python3.13t interprerer on Windows to fix the build failure.

@messense
Copy link
Member

messense commented Dec 4, 2024

BTW, please also update pyo3 to 0.23.3 to fix this soundness bug: PyO3/pyo3#4757

@XmchxUp
Copy link
Contributor Author

XmchxUp commented Dec 4, 2024

You need to either enable generate-import-lib feature of pyo3 or use Quansight-Labs/setup-python to install a python3.13t interprerer on Windows to fix the build failure.

Thanks for your help.

Copy link
Member

@messense messense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@messense messense merged commit 6420ee2 into apache:main Dec 4, 2024
66 checks passed
@XmchxUp XmchxUp deleted the xmchx/issues-5383 branch December 4, 2024 07:38
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new feature: publish python3.13t free-threaded wheel
2 participants