Skip to content

Commit

Permalink
fix: also check for presence of Python header with meson (#199)
Browse files Browse the repository at this point in the history
Checking for the presence of a Python installation alone is not sufficient and building might fail with compiler errors on systems, which have Python installed but not the matching headers

Signed-off-by: Christopher Arndt <[email protected]>
  • Loading branch information
SpotlightKid authored Apr 16, 2024
1 parent 8b773b4 commit 801e9f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ have_semaphore = cpp.has_header('semaphore.h')
pymod = import('python')
python = pymod.find_installation(get_option('python'), required: true, pure: false)

have_python_header = cpp.has_header('Python.h',
include_directories: include_directories(python.get_path('include')), required: true)

# Generate _rtmidi extension source
subdir('src')

Expand Down

0 comments on commit 801e9f1

Please sign in to comment.