Skip to content

Commit

Permalink
Define Py_GIL_DISABLED macro on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cvijdea-bd committed Sep 27, 2024
1 parent b1e52fc commit b5e82ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ def get_winver():
# see: https://github.com/giampaolo/psutil/issues/348
('PSAPI_VERSION', 1),
])

if Py_GIL_DISABLED:
macros.append(('Py_GIL_DISABLED', 1))

ext = Extension(
'psutil._psutil_windows',
Expand Down

0 comments on commit b5e82ba

Please sign in to comment.