[LyX/master] Make the directories in LyX application bundle read only.
Guenter Milde
milde at users.sf.net
Fri Feb 21 18:45:42 UTC 2020
On 2020-02-21, Jean-Marc Lasgouttes wrote:
> Le 21/02/2020 à 17:45, Stephan Witt a écrit :
>> commit ca7defab45a685bbc0303c32b94afb5ec98d4118
>> Author: Stephan Witt <switt at lyx.org>
>> Date: Fri Feb 21 18:04:28 2020 +0100
>> Make the directories in LyX application bundle read only.
>> Python produces files with cached on-the-fly compiled code on disk inside the bundle.
>> This should be avoided in case of a signed application bundle.
> Are the .pyc file still present? I think they are needed
> performance-wise (for startup time).
The .pyc files are created on the fly, if they are missing or outdated and
the directory can be written to.
Generally, you would not include them in a source archive or distribution.
Binary packages may contain them.
> I am not sure about the portability, though. Assuming we require python3
> are there different pyc versions?
While Python2 places .pyc files in the same directory as the source file,
Python3 creates a sub-directory "__pycache__/".
Günter
More information about the lyx-devel
mailing list