[Rpm-maint] [rpm-software-management/rpm] Provide a way to opt out from automagic Python bytecompilation (#434)
Miro Hrončok
notifications at github.com
Tue Apr 24 11:46:14 UTC 2018
It is all explained in https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation#How_we_are_changing_it
> For the time being, we **keep the old behavior working**, so the hundreds of packages that implicitly rely on it do not break all at once. However, we will not (automatically) apply it to Python 3, so it will be phased out as packages switch to Python 3.
>
> A **opt-out mechanism for automatic compilation of files outside of `/usr/lib(64)?/pythonX.Y/` will be provided** (such as `%?disable_automagic_pybytecompile`). Speaking code, this will disable the final part of the brp-python-bytecompile script.
>
> Guidelines will be adjusted to say the following:
>
> if you have *.py files outside of the `/usr/lib(64)?/pythonX.Y/`, you MUST disable their automatic compilation, and compile them explicitly by the `%py_byte_compile` macro if and only if the bytecompilation is desired (i.e. it's an importable Python module).
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/434#issuecomment-383901604
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180424/31fc6365/attachment.html>
More information about the Rpm-maint
mailing list