From 99f4d2e91e7ea389a04c94f98b7c9f121557de44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Tue, 13 Dec 2022 02:19:13 +0000 Subject: [PATCH] MAINT: use sysconfig in _debian_python on Python >=3.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe LaĆ­ns --- mesonpy/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonpy/__init__.py b/mesonpy/__init__.py index 48b53a7a3..ec1ae39a0 100644 --- a/mesonpy/__init__.py +++ b/mesonpy/__init__.py @@ -285,6 +285,8 @@ def entrypoints_txt(self) -> bytes: @property def _debian_python(self) -> bool: """Check if we are running on Debian-patched Python.""" + if sys.version_info >= (3, 10): + return 'deb_system' in sysconfig.get_scheme_names() try: import distutils try: