]> git.ipfire.org Git - thirdparty/git.git/commit
meson: stop discovering native version of Python
authorPatrick Steinhardt <ps@pks.im>
Wed, 9 Jul 2025 06:23:35 +0000 (08:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Jul 2025 15:19:32 +0000 (08:19 -0700)
commit10f048fcd18822d38348b2406e3e4bc898fb4a3a
tree2c5ce6face73ff7db34e930bf649336f4d992ce4
parent16bd9f20a403117f2e0d9bcda6c6e621d3763e77
meson: stop discovering native version of Python

When Python features are enabled we search both for a native and
non-native version of Python. This is wrong though: we don't use Python
in our build process, so there is no need to search for it in the first
place.

There is one location where we use the native version of Python, namely
when deciding whether or not we want to wire up git-p4(1). This check is
invalid though, as we shouldn't check for the build host to have Python,
but for the target host.

Fix this invalid check to use the non-native version of Python and stop
searching for a native version of Python altogether.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
meson.build