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

Re: [pygame] Binary distribution woes



On 9/21/06, Michael Brunton-Spall <mib@xxxxxxxxxxxxxx> wrote:
On Thu, 2006-09-21 at 08:16 -0700, Bob Ippolito wrote:
> On 9/21/06, Chris Ashurst <CAshurst@xxxxxxxx> wrote:
> > Regarding that... If I develop on a windows box, is there any way for me to
> > build a OSX application bundle on my machine? I kind of figure I could
> > possibly use Cygwin to make use of Freeze, but I also worry about
> > distributing a binary for *nix systems that may use a different endian
> > system or blah blah blah.
>
> No... and no.
That possibly explains a lot of the issues I've been having.
I've managed to get py2app, a plist implementation and otehr stuff
installed but my linux system wasn't having any of it trying to generate
the application bundle.

I'll try cx_freeze and see if I can get a linux build,a lthought he
linux one is the least of my worries, most linux people can understand
the console.

I can try the py2exe on my windows machine sometime.

py2app *could* be made to work cross-platform, because it's pure python, but you'd still need all of the Mac OS X binaries for Python and the dependencies. I have no interest in supporting this. If you want to deploy on the Mac you'll need a Mac to test on anyway.

py2exe is very similar to py2app, but you will have to do more work
with py2exe because it doesn't include hooks to support pygame.

py2exe is not cross-platform code and absolutely must be used on win32.

I've used a recipe similar to this for my first attempt at a standard
bdist_dumb build, but the tar.gz file it generates contains the
path ./usr/lib/python2.4/site-packages/
that's fine if I wanted the users to develop an application against my
game, but I'd really rather it didn't install my sourcecode on the
target machine, but only shipped compiled pyc/pyo objects and a main
script, which all unpacked to say ./GameName instead

While bdist_dumb is standard, that's not what it's for. cx_Freeze exists for this purpose.

-bob