From b24919b17acda9ec262465687e302deb2fc2cb25 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 26 Dec 2024 12:30:08 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B9=20Feed=20the=20hobgoblins=20(delin?= =?UTF-8?q?t).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- distutils/command/build_ext.py | 2 +- distutils/util.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distutils/command/build_ext.py b/distutils/command/build_ext.py index df2524b1..82c0e9f5 100644 --- a/distutils/command/build_ext.py +++ b/distutils/command/build_ext.py @@ -23,7 +23,7 @@ ) from ..extension import Extension from ..sysconfig import customize_compiler, get_config_h_filename, get_python_version -from ..util import get_platform, is_mingw, is_freethreaded +from ..util import get_platform, is_freethreaded, is_mingw # An extension name is just a dot-separated list of Python NAMEs (ie. # the same as a fully-qualified module name). 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'))