[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Intra-package C extensions with freeze.py

mk

2/24/2010 5:47:00 PM

On 2010-01-13 20:52, Pascal Chambon wrote:

> I've managed to solve that by manually "monkey patching" sys.modules,
> before fusemodule's actual import. But this looks like an unsatisfying
> solution, to me.

Geez..

> Does anyone have a clue about how to freeze a python program cleanly, in
> case such inner C extensions are involved ? Does any of the freezers
> (freeze.py, py2exe, pyrex, cx_freeze...) do that ? I haven't seen such
> things so far in their docs.

Go for pyinstaller, I have successfully packaged an app using compiled C
extensions this way. Although you will have to add those extensions in
"hook" script.

Regards,
mk