]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: don't use Python module for host Python (#41959)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 May 2026 15:38:19 +0000 (00:38 +0900)
committerGitHub <noreply@github.com>
Thu, 14 May 2026 15:38:19 +0000 (00:38 +0900)
commita7c76ceaefeb6376f41255dfc4e580c21e984d47
treed364ca4a22532f1eb0bce17e590b221aecb6ccfa
parentbb233dcb4be131990e2222c8a65e63f6771e28fa
parent106bb47d2d193e546821da593d1c446ea53414c3
meson: don't use Python module for host Python (#41959)

Checking for pefile required that module to be made available for the
Python used to build systemd, even though it's only used at runtime,
potentially via a different Python installation.

Furthermore, Meson's Python module doesn't do the right thing when cross
compiling and looking up a Python for the host system, so this would end
up uselessly checking whether the build Python had the pefile module,
which is not needed. Even if it were made to check the host Python using
find_program, it still relies on being able to run its Python, which in
a cross scenario it probably wouldn't be able to do.

All in all, this check does more harm than good, and prevents building
ukify in valid configurations, so remove it.
.github/workflows/build-test.sh
meson.build