[OpenWrt-Devel] [PATCH] /etc/profile: add 'export PYTHONDONTWRITEBYTECODE=1'
Felix Fietkau
nbd at openwrt.org
Wed Nov 12 16:01:04 EST 2014
On 2014-11-12 21:08, Alexandru Ardelean wrote:
> Tells Python not to compile the source files.
>
> The default behaviour is for the sources to be compiled
> when the sources are run.
>
> On small disks this can fill them up.
>
> Although the performance of Python will suffer (it's not fast
> to begin with) it's better to for it to be slow than to fill up
> the disk and cause the target to be stuck.
>
> Users can disable this at their own risk/expense/will/etc.
>
> This works on both python and python3.
>
> Signed-off-by: Alexandru Ardelean <ardeleanalex at gmail.com>
I'd prefer patching python/python3 instead of adding workarounds to
/etc/profile.
- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list