--- scipy/meson.build.orig	2024-11-06 11:13:29
+++ scipy/meson.build	2024-11-06 11:13:21
@@ -182,10 +182,14 @@

 macOS13_3_or_later = false
 if host_machine.system() == 'darwin'
-  r = run_command('xcrun', '-sdk', 'macosx', '--show-sdk-version', check: true)
-  sdkVersion = r.stdout().strip()
-
-  macOS13_3_or_later = sdkVersion.version_compare('>=13.3')
+  r = run_command('xcrun', '-sdk', 'macosx', '--show-sdk-version', check: false)
+  errortxt = r.stderr().strip()
+  if errortxt != ''
+      macOS13_3_or_later = false
+  else
+      sdkVersion = r.stdout().strip()
+      macOS13_3_or_later = sdkVersion.version_compare('>=13.3')
+  endif
 endif

 _args_blas_lapack = []
