Skip to content

Commit

Permalink
Define Py_GIL_DISABLED macro on Windows
Browse files Browse the repository at this point in the history
python/cpython#111650

Signed-off-by: Cristi Vîjdea <cvijdea@bitdefender.com>
  • Loading branch information
cvijdea-bd committed Sep 27, 2024
1 parent b1e52fc commit 08ea7c8
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 08ea7c8

Please sign in to comment.