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

Re: [pygame] py2exe sample setup.py




On Apr 14, 2005, at 1:15 AM, Rene Dudfield wrote:

py2exe sample setup.py

Just used it to create an exe with python 2.4, on windows including
one with pyopengl as well as pygame.

http://www.madecollective.com/~rene/setup.py

will full instructions inside.

FYI, with py2app on OS X, none of that special crap is necessary (because it knows pygame and PyOpenGL). Also note that the py2exe example doesn't include the default font, which isn't ideal for most applications. The py2app version would look like:


from distutils.core import setup
import py2app
setup(
    # The first three parameters are not required, if at least a
    # 'version' is given, then a versioninfo resource is built from
    # them and added to the executables.
    version = "0.0.1",
    description = "pygame py2exe sample script",
    name = "pygame example",

    # targets to build.  name of your exe here.
    app = ["infekchion.py"],
    data_files=['data'],
)