Skip to content

build(meson): use find_program('python3') #1386

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

Tachi107
Copy link
Contributor

@Tachi107 Tachi107 commented Jan 30, 2022

If you really want to be sure to always find python3 when running Meson (and not some other implementation like Muon) it is a bit better to use find_program('python3'), as described in https://mesonbuild.com/Reference-manual_functions.html#find_program: "if the "python3" program is requested and it is not found in the system, Meson will return its current interpreter

Edit: by better I mean faster and less ambiguous (as this will simply look for python3 in $PATH when Meson is not running through a python interpreter), see mesonbuild/meson#3856 (comment)

Tachi107 and others added 2 commits January 30, 2022 14:19
If you really want to be sure to always find python3 when running Meson (and not some other implementation like [Muon](https://muon.build)) it is a bit better to use `find_program('python3')`, as described in https://mesonbuild.com/Reference-manual_functions.html#find_program : "if the "python3" program is requested and it is not found in the system, Meson will return its current interpreter
@baylesj baylesj merged commit fd1abe4 into open-source-parsers:master Sep 10, 2024
7 checks passed
@Tachi107 Tachi107 deleted the patch-1 branch September 10, 2024 09:21
@Tachi107
Copy link
Contributor Author

Tachi107 commented Sep 10, 2024 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants