I’ve created a pull request to remove the --no-compile flag from pip install
in the python plugin which will mean packages will have .pyc files generated. This should mean python snaps start faster.
… it also means you make the binary snaps architecture specific, and can not use something like:
architectures:
- build-on: amd64
run-on: all
anymore, since you now ship precompiled binaries instead of interpreted code.
https://stackoverflow.com/questions/30443490/is-pyc-platform-independent are you sure about that?
i totally was ! until you replied …
thanks for correcting me
1 Like
Instead of removing it completely, can you make this the default but add an option to the plugin to not compile… we have build-attributes for things that are generic, but I am not sure it fits there, it might.
If you feel creative, propose something or validate the use of build-attributes: [no-compile]
, no-compile
is not to indicative enough for it to be used generically though, unless I am overthinking this.