From 075b285278c7f44e828ea46cb20bd8d8d5ca7d80 Mon Sep 17 00:00:00 2001 From: Marcel Plch Date: May 28 2020 16:05:57 +0000 Subject: Update pycached entry guidelines/modules/ROOT/pages/Python.adoc Document changes in https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/62 --- diff --git a/guidelines/modules/ROOT/pages/Python.adoc b/guidelines/modules/ROOT/pages/Python.adoc index 586bd09..5956443 100644 --- a/guidelines/modules/ROOT/pages/Python.adoc +++ b/guidelines/modules/ROOT/pages/Python.adoc @@ -335,6 +335,10 @@ so for older Python versions (such as 3.4 in EPEL 6 or 7), you need to list the files manually. +NOTE 2: Should you want to use other macros with the %pycached macro, such as %exclude or %license, pass the other macro as part of the argument to %pycached. For example: +%pycached %exclude /path/to/foo.py +Using these macros in the wrong order would only apply %exclude to one of the entries that %pycached generates. + === Manual byte compilation For more details on the internals of byte compilation, please see xref:Python_Appendix.adoc#manual-bytecompilation[the appendix].