| 1 | Allows building without Python installed, when tests are not enabled. |
| 2 | |
| 3 | |
| 4 | |
| 5 | endif |
| 6 | |
| 7 | bash = find_program('bash', required : false) |
| 8 | |
| 9 | +if get_option('tests') |
| 10 | if get_option('python') == '' |
| 11 | python = find_program('python3') |
| 12 | else |
| 13 | python = find_program(get_option('python')) |
| 14 | endif |
| 15 | +endif |
| 16 | |
| 17 | libcap_dep = dependency('libcap', required : true) |
| 18 |