Skip to content

🩹 make sure to define Py_GIL_DISABLED on Windows for Python 3.13t #425

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

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

burgholzer
Copy link
Member

Description

As pointed out in pypa/cibuildwheel#1975 (comment) free-threading (Python 3.13t) builds on Windows need to have Py_GIL_DISABLED set in order to properly work.
This PR ensures that the corresponding setting is always set.

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

@burgholzer burgholzer self-assigned this Sep 5, 2024
@burgholzer burgholzer added python Pull requests that update Python code fix Anything related to bugfixes labels Sep 5, 2024
@burgholzer burgholzer enabled auto-merge (squash) September 5, 2024 12:18
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.3%. Comparing base (15a0c7c) to head (c6c97fd).
Report is 64 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #425   +/-   ##
=====================================
  Coverage   92.3%   92.3%           
=====================================
  Files         37      37           
  Lines       2721    2721           
  Branches     305     304    -1     
=====================================
  Hits        2513    2513           
  Misses       208     208           
Flag Coverage Δ
cpp 94.1% <ø> (ø)
python 87.4% <ø> (ø)

see 2 files with indirect coverage changes

@burgholzer burgholzer merged commit 043d484 into main Sep 5, 2024
34 checks passed
@burgholzer burgholzer deleted the free-threading-windows branch September 5, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Anything related to bugfixes python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant