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

2017-03-27 Thread Alexandru Ardelean
Well, you might be able to just copy the package files over and it may just work. Not sure. On Mon, Mar 27, 2017 at 10:01 AM, Xuebing Wang wrote: > Hi Alex, > > Thank you very much for your help. Apologies for the late response. I have > been very busy recently. I do hope that I can find some tim

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

2017-03-27 Thread Xuebing Wang
Hi Alex, Thank you very much for your help. Apologies for the late response. I have been very busy recently. I do hope that I can find some time to backport these changes to CC 15.05. xuebing On 2017年03月10日 03:46, Alexandru Ardelean wrote: Hey Xuebing, Apologies for the late response. Shor

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

2017-03-09 Thread Alexandru Ardelean
Hey Xuebing, Apologies for the late response. Short version: please checkout this PR https://github.com/openwrt/packages/pull/4130 I am hoping you can backport these changes to OpenWrt CC 15.05 I've managed to package Python & Python3 with .pyc bytecodes. And it seems to work fine. I tested with

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

2017-02-17 Thread Xuebing Wang
Hi Alex, Thank you so much for your help. xuebing wang On 2017年02月17日 23:37, Alexandru Ardelean wrote: @Xuebing: so, there doesn't seem to be a very easy way to do this at build time. I mean, at first, it can seem easy, because all that is needed, is to add script that compiles here: https://

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

2017-02-17 Thread Alexandru Ardelean
@Xuebing: so, there doesn't seem to be a very easy way to do this at build time. I mean, at first, it can seem easy, because all that is needed, is to add script that compiles here: https://github.com/openwrt/packages/blob/for-15.05/lang/python/files/python-package.mk#L94 That script needs to recu

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

2017-02-16 Thread Xuebing Wang
Hi Alex, Thanks a lot for your help. I am using Python 2.7.12, branch chaos_calmer from (git://github.com/openwrt/openwrt.git), feeds branch is for-15.05. Also, I am using Atheros platform based on MIPS architecture. Thanks again. xuebing wang On 2017年02月17日 15:31, Alexandru Ardelean wrot

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

2017-02-16 Thread Alexandru Ardelean
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 wrote: > Hi Community and Alexandru: > > I am using OpenWrt chaos_calmer

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

2017-02-16 Thread Xuebing Wang
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 ca