[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Distributing a Pygame game on Linux



On 13 May 2013 00:32, Kevin Locoh <rayman3640@xxxxxxxxx> wrote:
Oh sorry, I'd completely missed your message. Actually, it works on my computer with Ubuntu, but I had understood that cx_Freeze doesn't include every C extension library, in my case the SDL, which makes the tarball quite dependent of the distro: the game frozen with cx_Freeze would probably crash with a "module not found" message on another platform. Am I mistaken anywhere? I somehow hope so, it'd much easier for me to keep cx_Freeze which already works with Python 3.

It's supposed to include all the libraries that the program needs to run, but not standard system libraries like libc. It might not be detecting SDL as a dependency, or it might be misclassifying it as a system library. Either way, you can force it to include a library with the include_files option (see docs at [1]).

If there's a simple way to get it working, you can contribute a hook for pygame to include files that the automatic detection misses.

[1] http://cx_freeze.readthedocs.org/en/latest/distutils.html

Best wishes,
Thomas