[OpenWrt-Devel] OpenWRT: how to include byte-compile .pyc files into sysupgrade image?

Alexandru Ardelean ardeleanalex at gmail.com
Fri Feb 17 02:31:28 EST 2017


Oh.

This is an old topic.
Let me think about it, for a bit.

Quick q: which Python version are you using and from which repo/branch ?
I usually test against trunk.

Thanks
Alex

On Fri, Feb 17, 2017 at 8:40 AM, Xuebing Wang <xbing6 at gmail.com> wrote:
> Hi Community and Alexandru:
>
> I am using OpenWrt chaos_calmer for an Atheros based platform, we have a
> complicated Python application which takes time to run.
> - On the target board, I can "python -m compileall ." for Python standard
> libraries in directories "/usr/lib/python2.7", and boot time can improve
> significantly.
>
> Would you please advise how can I change in files feeds/packages/lang/python
> to byte-compile Python libraries and include .pyc files in the sysupgrade
> image?
>
> I am using below packages:
> CONFIG_PACKAGE_python-base=y
> CONFIG_PACKAGE_python-light=y
> CONFIG_PACKAGE_python-codecs=y
> CONFIG_PACKAGE_python-openssl=y
> CONFIG_PACKAGE_python-sqlite3=y
> CONFIG_PACKAGE_python-logging=y
>
> Thanks.
> xuebing wang
>
_______________________________________________
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