On 11/29/20 3:22 PM, Kalev Lember wrote:
Can do. However, one question: When we find code in
we bytecompile with /usr/bin/pythonX.Y or /app/bin/pythonX.Y?
It depends: for python2.7 (gimp flatpak) we use python2.7 re-built for /app
prefix (so it's bundled with the app's flatpak), but for regular python3 we just
use the /usr-installed one that's part of the flatpak runtime (the runtime uses
/usr prefix and app flatpaks use /app prefix).
Here's a draft PR that should fix the Python 3 case:
The Python 2 case is IMHO not worth it. It doesn't have __pycache__ or %pycached.
It might be a good idea to call %py_byte_compile in the spec files of flatpaked
Python 2 RPMs if the bytecache is desired.