Activity log for bug #1856242

Date Who What changed Old value New value Message
2019-12-12 20:45:18 Omer Akram bug added bug
2019-12-12 20:45:51 Omer Akram description Currently snapcraft bytecompiles .py files as part of the Python plugin, this is done to fasten startup time of snaps. Doing that increases the size of the snap due to no reason. The snap should only ship pyc file and remove .py files. How to achieve that ? 1. pip install --no-compile 2. python3 -m compileall -b 3. find . -name '*.py' -type f -exec rm {} \; Currently snapcraft bytecompiles .py files as part of the Python plugin, this is done to fasten startup time of snaps. Doing that increases the size of the snap, something that could be avoided. The snap should only ship pyc file and remove .py files. How to achieve that ? 1. pip install --no-compile 2. python3 -m compileall -b 3. find . -name '*.py' -type f -exec rm {} \;