[OpenWrt-Devel] [PATCH] /etc/profile: add 'export PYTHONDONTWRITEBYTECODE=1'

Alexandru Ardelean ardeleanalex at gmail.com
Wed Nov 12 16:05:09 EST 2014


Will do it that way.

Thanks


On Wed, Nov 12, 2014 at 11:01 PM, Felix Fietkau <nbd at openwrt.org> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20141112/59902dfb/attachment.htm>
-------------- next part --------------
_______________________________________________
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