mirror of
https://github.com/systemd/systemd.git
synced 2026-08-09 17:38:42 +00:00
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.
This commit is contained in:
4
.github/workflows/build-test.sh
vendored
4
.github/workflows/build-test.sh
vendored
@@ -159,8 +159,8 @@ if [ -n "$bpftool_dir" ]; then
|
||||
fi
|
||||
|
||||
if [[ -n "$CUSTOM_PYTHON" ]]; then
|
||||
# If CUSTOM_PYTHON is set we need to pull jinja2 from pip, as a local interpreter is used
|
||||
pip3 install --user --break-system-packages jinja2
|
||||
# If CUSTOM_PYTHON is set we need to pull dependencies from pip, as a local interpreter is used
|
||||
pip3 install --user --break-system-packages jinja2 pefile
|
||||
fi
|
||||
|
||||
$CC --version
|
||||
|
||||
Reference in New Issue
Block a user