From f151ef77212aa214fdccb117a46164d2a4236679 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Feb 25 2025 09:36:00 +0000 Subject: Document %pyproject_save_files -M --- diff --git a/guidelines/modules/ROOT/pages/Python.adoc b/guidelines/modules/ROOT/pages/Python.adoc index a03084d..fe651a7 100644 --- a/guidelines/modules/ROOT/pages/Python.adoc +++ b/guidelines/modules/ROOT/pages/Python.adoc @@ -1547,6 +1547,12 @@ to avoid accidentally losing the file in a future version. When the `%license` file is manually listed in `%files`, packagers can use this flag to ensure future compatibility in case the `-l` behavior eventually becomes a default. +** `+-M+`: Do not list any modules. +When the package has no Python modules in it +or when you need to list the modules in `+%files+` manually, +this option allows to save just the non-module files +(such as the `+.dist-info+` metadata directory). +This option cannot be combined with `MODNAME`s. [#pyproject_files] * `+%{pyproject_files}+`