Skip to content
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

Disable limited API for free-threaded Python #1051

Open
wants to merge 1 commit into
base: 4.x
Choose a base branch
from

Conversation

rostan-t
Copy link

@rostan-t rostan-t commented Nov 29, 2024

Free-threaded Python does not support the Limited C API.1

This PR should make it possible to build OpenCV wheels for Python 3.13t (#1029).

Footnotes

  1. https://docs.python.org/3/howto/free-threading-extensions.html#limited-c-api-and-stable-abi

@rostan-t rostan-t force-pushed the ft-python-limited-api branch from ea2620b to 8d3e661 Compare March 17, 2025 10:22
@rostan-t
Copy link
Author

With this change, I was able to build a wheel for free-threaded Python with both pip wheel . and python setup.py bdist_wheel. It works with Python 3.13.2t, and I also tested it with older versions.

Is there any additional information I can provide to help move this forward?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants