From 856119691300fc961c19b1895ebb7caf8a8cd64c Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Apr 26 2020 14:47:31 +0000 Subject: Docuemnt how to pass arguments to %py3_build/install https://bugzilla.redhat.com/show_bug.cgi?id=1818920 --- diff --git a/guidelines/modules/ROOT/pages/Python.adoc b/guidelines/modules/ROOT/pages/Python.adoc index c00bcb1..586bd09 100644 --- a/guidelines/modules/ROOT/pages/Python.adoc +++ b/guidelines/modules/ROOT/pages/Python.adoc @@ -226,11 +226,11 @@ The following macros are defined for you in all supported Fedora and EPEL releas |`+%py3_build+` |`+%{__python3} setup.py build …+` -|Various flags are added, see `/usr/lib/rpm/macros.d/macros.python3` for details and similar macros. Define `+%py_setup_args+` to pass custom command line arguments to `setup.py`. +|See `+%py3_install+` for passing arguments to `+setup.py build+` or directly to `+setup.py+`. |`+%py3_install+` |`+%{__python3} setup.py install --skip-build …+` -| +|Various flags are passed to `+setup.py install+`, see `/usr/lib/rpm/macros.d/macros.python3` for details and similar macros. To add extra flags/arguments to `+setup.py install+`, separate them with `+--+`, for example: `+%py3_install -- --install-scripts %{_libexecdir}+`. To pass custom command line arguments directly to `+setup.py+`, define `+%py_setup_args+`. |`+%{py_dist_name}+` |(Lua script)