On 29 September 2013 23:28, Marcus Møller <m...@qimmit.com> wrote:
> When trying to freeze a Python 3 application which depends on
> python-sfml (http://www.python-sfml.org/), the freeze seems to go just
> fine, but the executable crashes.
>
> Here's the log:
> https://gist.github.com/marcusmoller/7432dc68ada8de1a9663
It seems to be copying the required library OK, but something is going
wrong when it tries to load it. I'd hazard a guess that Cython's module
initialisation is interacting with cx_Freeze's extension module loader
code. But I don't know what Cython could be doing.
Some background on what cx_Freeze is doing: packages are stored in a zip
file, from which only Python modules can be loaded, not extension modules.
So, when it freezes an extension module, it copies the library (.so/.pyd)
into the build directory, and creates a Python shim module at the correct
point in the package, which will load the extension module when it is
itself imported. The source for that shim is here:
https://bitbucket.org/anthony_tuininga/cx_freeze/src/3b056cee2d76f8f6c004e0cf8c38cfba91c66f21/cx_Freeze/freezer.py?at=default#cl-22
I guess now you'll need to work out what Cython module initialisation does,
and how it might be interacting with that.
Thomas
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users