Skip to content

Use pymod.find_installation() to find python in meson.build - #1076

Merged
henryiii merged 1 commit into
CLIUtils:mainfrom
nshaheed:meson_find_python
Oct 13, 2024
Merged

henryiii merged 1 commit into
CLIUtils:mainfrom
nshaheed:meson_find_python

Conversation

@nshaheed

Copy link
Copy Markdown
Contributor

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

@codecov

codecov Bot commented Oct 12, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (e4ee3af) to head (c5bb943).
Report is 45 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##              main     #1076     +/-   ##
===========================================
  Coverage   100.00%   100.00%             
===========================================
  Files           17        17             
  Lines         4546      4698    +152     
  Branches         0      1007   +1007     
===========================================
+ Hits          4546      4698    +152     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@phlptp

phlptp commented Oct 12, 2024

Copy link
Copy Markdown
Collaborator

I have no experience with meson, but seems reasonable.
@henryiii unless you have objections I will approve and merge on Monday.

@henryiii

Copy link
Copy Markdown
Collaborator

This looks correct to me.

@henryiii
henryiii merged commit 32ea8d5 into CLIUtils:main Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants