diff --git a/mesonbuild/dependencies/blas_lapack.py b/mesonbuild/dependencies/blas_lapack.py index 67817b2b6190..eb89044770bd 100644 --- a/mesonbuild/dependencies/blas_lapack.py +++ b/mesonbuild/dependencies/blas_lapack.py @@ -526,7 +526,7 @@ def __init__(self, name: str, environment: 'Environment', kwargs: T.Dict[str, T. def check_macOS_recent_enough(self) -> bool: cmd = ['xcrun', '-sdk', 'macosx', '--show-sdk-version'] - sdk_version = str(subprocess.run(cmd, capture_output=True, check=True).stdout) + sdk_version = subprocess.run(cmd, capture_output=True, check=True, text=True).stdout.strip() return sdk_version >= '13.3' def detect(self, kwargs: T.Dict[str, T.Any]) -> None: