-run_target('reformat', command: [
- python,
- '@SOURCE_ROOT@/lint.py',
- '--fix',
-])
-
-run_target('lint', command: [
- python,
- '@SOURCE_ROOT@/lint.py',
-])
+if python.found()
+ run_target('reformat', command: [
+ python,
+ '@SOURCE_ROOT@/lint.py',
+ '--fix',
+ ])
+
+ run_target('lint', command: [
+ python,
+ '@SOURCE_ROOT@/lint.py',
+ ])
+endif