mkosi: ruff is not available on all distros

Refactor to only install ruff where it is available
This commit is contained in:
Davide Cavalca 2024-11-11 20:49:36 -08:00 committed by Luca Boccassi
parent 68a2a43c9b
commit fa8a55a914
4 changed files with 10 additions and 1 deletions

View File

@ -7,4 +7,3 @@ ToolsTreePackages=
meson meson
mypy mypy
pkgconf pkgconf
ruff

View File

@ -10,5 +10,6 @@ ToolsTreePackages=
libmicrohttpd libmicrohttpd
python-jinja python-jinja
python-pytest python-pytest
ruff
tpm2-tss tpm2-tss
util-linux-libs util-linux-libs

View File

@ -0,0 +1,8 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Match]
ToolsTreeDistribution=fedora
[Build]
ToolsTreePackages=
ruff

View File

@ -12,6 +12,7 @@ ToolsTreePackages=
pkgconfig(fdisk) pkgconfig(fdisk)
pkgconfig(libmicrohttpd) pkgconfig(libmicrohttpd)
pkgconfig(mount) pkgconfig(mount)
python3-ruff
tss2-devel tss2-devel
python3-jinja2 python3-jinja2
python3-pytest python3-pytest