Yes, Thanks for your answering.

The files size without optimize, with a single O, and with OO  are
gradually decends. It seems that the optimization does work.

However, in the exe file built by py2exe with optimize level 2,  all
the moudules were packed by *.pyo.
And even the optimized pyc moudules packed cx_Freeze, the file size of
that was also a bit larger than that of the pyo modules packed by
py2exe.

Thus, is there any difference between the two packing tools when
building optimized exe files ?


2011/10/20 Anthony Tuininga <[email protected]>:
> Hi, I believe that the code is in fact optimized even if it has a .pyc
> extension. That is only convention as far as I understand. Try without
> -O at all and with a single -O and see if the file sizes change. If
> not, let me know and I'll look into it a bit more if I can get a spare
> moment.
>
> Anthony
>
> On Thu, Oct 20, 2011 at 6:13 AM, QiangHuang <[email protected]> wrote:
>> Hi everyone :
>>
>> I used the following cmd 'cxfreeze log2xml.py -OO' to create a exe
>> file for my py file in cxfreeze 4.2.3, python 2.5
>>
>> The exe was generated normally. However, the file size was too large to use.
>>
>> I renamed the exe file to a zip file. And I found that the cxfreeze
>> packed all the modules necessary in the form of pyc.
>>
>> Thus, I think if all the modules were packed in pyo format, the file
>> size for the exe would be  much smaller.
>>
>> Could anybody help me, and tell me how to build the exe file by
>> packing the pyo modules ?
>>
>> Thanks in advance.
>>
>> ------------------------------------------------------------------------------
>> The demand for IT networking professionals continues to grow, and the
>> demand for specialized networking skills is growing even more rapidly.
>> Take a complimentary Learning@Ciosco Self-Assessment and learn
>> about Cisco certifications, training, and career opportunities.
>> http://p.sf.net/sfu/cisco-dev2dev
>> _______________________________________________
>> cx-freeze-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>>
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Ciosco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> cx-freeze-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to