Skip to content

Set Py_GIL_DISABLED=1 for free threaded Python on Windows#310

Merged
FFY00 merged 2 commits intopypa:mainfrom
colesbury:freethreading-windows
Nov 26, 2024
Merged

Set Py_GIL_DISABLED=1 for free threaded Python on Windows#310
FFY00 merged 2 commits intopypa:mainfrom
colesbury:freethreading-windows

Conversation

@colesbury
Copy link
Copy Markdown
Contributor

When free threaded CPython is installed from the official Windows installer it doesn't have the macro Py_GIL_DISABLED properly set becuase its pyconfig.h file is shared across the co-installed default build.

Define the macro when building free threaded Python extensions on Windows so that each individual C API extension doesn't have to work around this limitation.

See pypa/setuptools#4662

Loading
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.

8 participants