diff --git a/distutils/util.py b/distutils/util.py index 6ef2c985..8d8260bc 100644 --- a/distutils/util.py +++ b/distutils/util.py @@ -504,6 +504,7 @@ def is_mingw(): """ return sys.platform == 'win32' and get_platform().startswith('mingw') + def is_freethreaded(): """Return True if the Python interpreter is built with free threading support.""" return bool(sysconfig.get_config_var('Py_GIL_DISABLED'))