[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Compilation
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Compilation
- From: Julian Marchant <onpon4@xxxxxxxxx>
- Date: Fri, 17 Feb 2012 15:37:28 -0800 (PST)
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 17 Feb 2012 18:37:37 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1329521849; bh=mUaNDJjrenJsQnmYbIw1LXsT2iTc+2zw34RXyXCtHWY=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=w5FZkdla+jVI22quEsMX2m1am2HhXfHwTFc47TifsMHyxGo30v2RKJWIq69i52ZtngvuIafyvPkO5YI9ITvhpOY85mTu7cvObYgAAeD6yEqZ4YOUMsitOz7Aukh7LUrLYcuOYOycXjS318sbJ3QZ5HvPG3/cOsOroPZZcHxUZ18=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LnpQkuxECEbw324MOhTtxuMb41FHvj0TEnI/H78y0LoYBpcU5Hk3V/uJAUiHAwV0e08MX/HxBvJ2ikRCi/wjwMXbRmB+z/osH7GXhvlUzLir4QKe4zjqQtR9VmV7xCpZ/d5wqvV+aE/xZ/Rep/sR/z3c/lXsYZgDT4QvzdxfVx4=;
- In-reply-to: <SNT108-DS12B75B9928C66DB5A11C10AF630@xxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
The link you gave just gives instructions on how to use a combination of cx_Freeze (which is great, by the way, I recommend it) and Install Creator. Note that only cx_Freeze can be actually useful to someone running Mac OS X, as Install Creator is Windows-only.
--- On Fri, 2/17/12, Andrew Godfroy <killerrin@xxxxxxxxxxx> wrote:
> From: Andrew Godfroy <killerrin@xxxxxxxxxxx>
> Subject: Re: [pygame] Compilation
> To: pygame-users@xxxxxxxx
> Date: Friday, February 17, 2012, 10:41 PM
> Hey, Try this: http://cs.simpson.edu/?q=make_an_installer_for_your_python_program
>
> I use it for all my programs when ready for distribution.
> What it does it converts your .Py to an exe file which can
> be run like any normal program. Its the only Compilation/Exe
> creation program that I have found that is still being
> supported.
>
> -----Original Message----- From: Zack Baker
> Sent: Friday, February 17, 2012 4:44 PM
> To: pygame-users@xxxxxxxx
> Cc: pygame-users@xxxxxxxx
> Subject: Re: [pygame] Compilation
>
> So could you just resend an email with the command exactly
> how it would as oppear because that looks a littled funky.
> Let's assume that the game is called helloworld.py and
> put it in the trunk folder or wherever. Thank you!
>
> -Zack
>
> On Feb 17, 2012, at 4:17 PM, Sam Bull <sam.hacking@xxxxxxxx>
> wrote:
>
> > On Thu, 2012-02-16 at 18:52 -0700, Ian Mallett wrote:
> >
> >> I am unaware of any other binary distribution
> techniques for Python on
> >> Mac other than py2app.
> >
> > [Sent from wrong address, so re-posting]
> >
> > Pyinstaller? It claims to be cross-platform. It's also
> the only one that
> > I've managed to get working without much hassle. I've
> only tested it on
> > Linux myself though.
> >
> > To create a frozen binary on my system, all I need to
> run is:
> > python ~/.pyinstaller-1.5.1/pyinstaller.py --onefile -o
> pyinstaller
> > trunk/pacman.py
> >
> > That's with pyinstaller installed in a hidden folder in
> my home
> > directory. The -o argument is the output directory. So
> this compiles my
> > game located at "trunk/pacman.py" into a single binary,
> saving it into
> > the "pyinstaller" folder.
> >
> > I've not managed to have any success with alternatives
> like py2app or
> > py2exe.
> >
> > Oh, and one caveat, the exit() function doesn't work
> with Pyinstaller,
> > use sys.exit() instead.
> >
> > -- Sam Bull <sambull.org>
> > PGP: 9626CE2B
> >
>