Skip to content

Commit

Permalink
Use pymod.find_installation() to find python in meson.build (#1076)
Browse files Browse the repository at this point in the history
Since Monterey 12.3, macOS removed python2.7 from it's base
installation. This means that `python` is not longer a command by
default (just `python3`), and the build for CLI11 fails. This PR moves
to using `pymod.find_installation()` to handle this in a more general
way. See https://mesonbuild.com/Python-module.html
  • Loading branch information
nshaheed authored Oct 13, 2024
1 parent 6ac8c66 commit 32ea8d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion single-include/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# meson.build here when generating the single file header so that it is placced
# in the correct location.

prog_python = find_program('python')
pymod = import('python')
prog_python = pymod.find_installation()

single_main_file = files('CLI11.hpp.in')

Expand Down

0 comments on commit 32ea8d5

Please sign in to comment.