Skip to content

Commit

Permalink
MAINT: use sysconfig in _debian_python on Python >=3.10
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Laíns <[email protected]>
  • Loading branch information
FFY00 committed Dec 21, 2022
1 parent 2d8309a commit 99f4d2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mesonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

This comment has been minimized.

Copy link
@dnicolodi

dnicolodi Dec 21, 2022

Member

I think the right version threshold here is 3.10.3, see also mesonbuild/meson#11133

return 'deb_system' in sysconfig.get_scheme_names()
try:
import distutils
try:
Expand Down

0 comments on commit 99f4d2e

Please sign in to comment.