Skip to content

Commit a06e762

Browse files
authored
Define Py_GIL_DISABLED macro on Windows (#2442)
python/cpython#111650 Signed-off-by: Cristi Vîjdea <cvijdea@bitdefender.com>
1 parent b1e52fc commit a06e762

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎setup.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ def get_winver():
224224
# see: https://github.com/giampaolo/psutil/issues/348
225225
('PSAPI_VERSION', 1),
226226
])
227+
228+
if Py_GIL_DISABLED:
229+
macros.append(('Py_GIL_DISABLED', 1))
227230

228231
ext = Extension(
229232
'psutil._psutil_windows',

0 commit comments

Comments
 (0)