On 11/29/20 3:22 PM, Kalev Lember wrote:
    Can do. However, one question: When we find code in /app/lib(64)/pythonX.Y, 
do
    we bytecompile with /usr/bin/pythonX.Y or /app/bin/pythonX.Y?


Awesome, thanks!

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:

https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/113

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.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org

Reply via email to