Re: [pygame] Compilation

2012-02-19 Thread Zack Baker
Ok by the way 

-Zack

On Feb 18, 2012, at 8:32 AM, Enrico Kochon ekoc...@uni-osnabrueck.de wrote:

 If Zack gets Pyinstaller to run on MacOs, this will be great!
 
 Struggling with py2app to the point were it run, was kind of driving me mad.
 
 
 Best regards
 
 Enno
 
 
 
 Am 18.02.2012 um 11:32 schrieb Sam Bull:
 
 On Fri, 2012-02-17 at 16:44 -0500, Zack Baker wrote:
 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!
 
 OK, if Pyinstaller were installed on your system you would run it with
 pyinstaller, but I haven't seen an installer for it. So, if you
 download the release on their website, and extract it to the home
 folder, you can run it with:
 python ~/pyinstaller-1.5.1/pyinstaller.py
 That is literally running the pyinstaller program in Python, much the
 same as you would run your own Python program from the terminal.
 
 Adding --onefile ensures it compiles the files into a single binary.
 
 -o foobar tells it which folder to save the output to. So, this would
 save it to the foobar folder inside whatever folder the terminal is
 in.
 
 spam/eggs.py tells it the top-level file of your project (the one you
 run to start the game). This would be the eggs.py file in the spam
 folder inside whatever folder the terminal is in.
 
 So, if you have Pyinstaller extracted in your home folder and your
 project is in the trunk folder, then this command should create a
 single binary in a pyinstaller/dist folder.
 
 python ~/pyinstaller-1.5.1/pyinstaller.py --onefile -o pyinstaller 
 trunk/helloworld.py
 
 Assuming you've downloaded the same version, obviously change the
 pyinstaller-1.5.1 if that's not what the folder is called after
 extraction.
 
 Oh, just remembered you may need to run this first, just once:
 python ~/pyinstaller-1.5.1/Configure.py
 
 -- 
 Sam Bull sambull.org
 PGP: 9626CE2B
 
 


Re: [pygame] Compilation

2012-02-19 Thread Zack Baker
Ok by three way I downloaded python 2.7.2 from pygame.org and whnen downloaded 
had another application other than idle called 'build applet' with what looks 
like a python script going through a scanner and an application coming out on 
the other side(that is the icon) yet ive googled it and I cannot seem to find 
anything to do with it. Also when I launch the app it brings up a finder window 
for me tok chose a script but all the scripts are greyest out. Any info would 
be great

-Zack

On Feb 18, 2012, at 8:32 AM, Enrico Kochon ekoc...@uni-osnabrueck.de wrote:

 If Zack gets Pyinstaller to run on MacOs, this will be great!
 
 Struggling with py2app to the point were it run, was kind of driving me mad.
 
 
 Best regards
 
 Enno
 
 
 
 Am 18.02.2012 um 11:32 schrieb Sam Bull:
 
 On Fri, 2012-02-17 at 16:44 -0500, Zack Baker wrote:
 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!
 
 OK, if Pyinstaller were installed on your system you would run it with
 pyinstaller, but I haven't seen an installer for it. So, if you
 download the release on their website, and extract it to the home
 folder, you can run it with:
 python ~/pyinstaller-1.5.1/pyinstaller.py
 That is literally running the pyinstaller program in Python, much the
 same as you would run your own Python program from the terminal.
 
 Adding --onefile ensures it compiles the files into a single binary.
 
 -o foobar tells it which folder to save the output to. So, this would
 save it to the foobar folder inside whatever folder the terminal is
 in.
 
 spam/eggs.py tells it the top-level file of your project (the one you
 run to start the game). This would be the eggs.py file in the spam
 folder inside whatever folder the terminal is in.
 
 So, if you have Pyinstaller extracted in your home folder and your
 project is in the trunk folder, then this command should create a
 single binary in a pyinstaller/dist folder.
 
 python ~/pyinstaller-1.5.1/pyinstaller.py --onefile -o pyinstaller 
 trunk/helloworld.py
 
 Assuming you've downloaded the same version, obviously change the
 pyinstaller-1.5.1 if that's not what the folder is called after
 extraction.
 
 Oh, just remembered you may need to run this first, just once:
 python ~/pyinstaller-1.5.1/Configure.py
 
 -- 
 Sam Bull sambull.org
 PGP: 9626CE2B
 
 


Re: [pygame] Compilation

2012-02-19 Thread Russell Owen
I believe it builds a drag and drop app and is old tech. Py2app and bdist_mpkg 
are the modern ways to package Mac distorts (the latter for binary installers 
such as pygame).

What is the state of 1.9.2? I'm willing to try a binary distro when folks think 
it is time (though w/out pymidi alas since I cannot build it).

Russell

On Feb 19, 2012, at 6:15 AM, Zack Baker zbaker1...@gmail.com wrote:

 Ok by three way I downloaded python 2.7.2 from pygame.org and whnen 
 downloaded had another application other than idle called 'build applet' with 
 what looks like a python script going through a scanner and an application 
 coming out on the other side(that is the icon) yet ive googled it and I 
 cannot seem to find anything to do with it. Also when I launch the app it 
 brings up a finder window for me tok chose a script but all the scripts are 
 greyest out. Any info would be great
 
 -Zack
 
 On Feb 18, 2012, at 8:32 AM, Enrico Kochon ekoc...@uni-osnabrueck.de wrote:
 
 If Zack gets Pyinstaller to run on MacOs, this will be great!
 
 Struggling with py2app to the point were it run, was kind of driving me mad.
 
 
 Best regards
 
 Enno
 
 
 
 Am 18.02.2012 um 11:32 schrieb Sam Bull:
 
 On Fri, 2012-02-17 at 16:44 -0500, Zack Baker wrote:
 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!
 
 OK, if Pyinstaller were installed on your system you would run it with
 pyinstaller, but I haven't seen an installer for it. So, if you
 download the release on their website, and extract it to the home
 folder, you can run it with:
 python ~/pyinstaller-1.5.1/pyinstaller.py
 That is literally running the pyinstaller program in Python, much the
 same as you would run your own Python program from the terminal.
 
 Adding --onefile ensures it compiles the files into a single binary.
 
 -o foobar tells it which folder to save the output to. So, this would
 save it to the foobar folder inside whatever folder the terminal is
 in.
 
 spam/eggs.py tells it the top-level file of your project (the one you
 run to start the game). This would be the eggs.py file in the spam
 folder inside whatever folder the terminal is in.
 
 So, if you have Pyinstaller extracted in your home folder and your
 project is in the trunk folder, then this command should create a
 single binary in a pyinstaller/dist folder.
 
 python ~/pyinstaller-1.5.1/pyinstaller.py --onefile -o pyinstaller 
 trunk/helloworld.py
 
 Assuming you've downloaded the same version, obviously change the
 pyinstaller-1.5.1 if that's not what the folder is called after
 extraction.
 
 Oh, just remembered you may need to run this first, just once:
 python ~/pyinstaller-1.5.1/Configure.py
 
 -- 
 Sam Bull sambull.org
 PGP: 9626CE2B
 
 


Re: [pygame] Compilation

2012-02-18 Thread Enrico Kochon
Hi,

please do not give up using py2app too fast.

On Mac 10.7 (Lion) together with macports and python2.6 packaging works fine.
There where some issues, I have to admit, However, they are solvable!


1st:
make sure you won't run into relocation errors (for details on this 
http://www.danplanet.com/blog/2009/02/15/using-py2app-with-gtk/)
- easy fix: in a fresh macports environment edit one line in
/opt/local/share/macports/Tcl/port1.0/portconfigure.tcl
to
default configure.ldflags   {-L${prefix}/lib -Xlinker 
-headerpad_max_install_names}

If you already have macports set up before, then a clean may be necessary ( be 
aware: your entire MacPorts environment gets uninstalled !!!)

backup list of installed ports:
$ port installed  myinstalled ports
(more info: https://trac.macports.org/wiki/UsingMacPortsQuickStart)

clean your port environment:
$ sudo port -fp uninstall --follow-dependents installed


2nd:
setup your build script correctly:
- include all necessary files
- declare modules as package

for a lot of files, you won't have to include every individual file by Hand, 
just use the directory traversing script given here: 
http://beckism.com/2009/03/pyobjc_tips/


A complete set of instructions for building a full app concerning the above 
tips can be found here,
it is independent from py-game, thus make sure to do a $ sudo port install 
py26-game:
http://wiki.unknown-horizons.org/w/MacOS_build_notes
Moreover all steps should run with Python2.7 or upper versions instead, just 
make sure to use the same prefix when installing the ports.


Good luck and have fun!

Enno





Am 17.02.2012 um 23:41 schrieb Andrew Godfroy:

 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@seul.org
 Cc: pygame-users@seul.org
 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.hack...@sent.com 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



Re: [pygame] Compilation

2012-02-18 Thread Sam Bull
On Fri, 2012-02-17 at 16:44 -0500, Zack Baker wrote:
 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!

OK, if Pyinstaller were installed on your system you would run it with
pyinstaller, but I haven't seen an installer for it. So, if you
download the release on their website, and extract it to the home
folder, you can run it with:
python ~/pyinstaller-1.5.1/pyinstaller.py
That is literally running the pyinstaller program in Python, much the
same as you would run your own Python program from the terminal.

Adding --onefile ensures it compiles the files into a single binary.

-o foobar tells it which folder to save the output to. So, this would
save it to the foobar folder inside whatever folder the terminal is
in.

spam/eggs.py tells it the top-level file of your project (the one you
run to start the game). This would be the eggs.py file in the spam
folder inside whatever folder the terminal is in.

So, if you have Pyinstaller extracted in your home folder and your
project is in the trunk folder, then this command should create a
single binary in a pyinstaller/dist folder.

python ~/pyinstaller-1.5.1/pyinstaller.py --onefile -o pyinstaller 
trunk/helloworld.py

Assuming you've downloaded the same version, obviously change the
pyinstaller-1.5.1 if that's not what the folder is called after
extraction.

Oh, just remembered you may need to run this first, just once:
python ~/pyinstaller-1.5.1/Configure.py

-- 
Sam Bull sambull.org
PGP: 9626CE2B



signature.asc
Description: This is a digitally signed message part


Re: [pygame] Compilation

2012-02-18 Thread Enrico Kochon
If Zack gets Pyinstaller to run on MacOs, this will be great!

Struggling with py2app to the point were it run, was kind of driving me mad.


Best regards

Enno



Am 18.02.2012 um 11:32 schrieb Sam Bull:

 On Fri, 2012-02-17 at 16:44 -0500, Zack Baker wrote:
 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!
 
 OK, if Pyinstaller were installed on your system you would run it with
 pyinstaller, but I haven't seen an installer for it. So, if you
 download the release on their website, and extract it to the home
 folder, you can run it with:
 python ~/pyinstaller-1.5.1/pyinstaller.py
 That is literally running the pyinstaller program in Python, much the
 same as you would run your own Python program from the terminal.
 
 Adding --onefile ensures it compiles the files into a single binary.
 
 -o foobar tells it which folder to save the output to. So, this would
 save it to the foobar folder inside whatever folder the terminal is
 in.
 
 spam/eggs.py tells it the top-level file of your project (the one you
 run to start the game). This would be the eggs.py file in the spam
 folder inside whatever folder the terminal is in.
 
 So, if you have Pyinstaller extracted in your home folder and your
 project is in the trunk folder, then this command should create a
 single binary in a pyinstaller/dist folder.
 
 python ~/pyinstaller-1.5.1/pyinstaller.py --onefile -o pyinstaller 
 trunk/helloworld.py
 
 Assuming you've downloaded the same version, obviously change the
 pyinstaller-1.5.1 if that's not what the folder is called after
 extraction.
 
 Oh, just remembered you may need to run this first, just once:
 python ~/pyinstaller-1.5.1/Configure.py
 
 -- 
 Sam Bull sambull.org
 PGP: 9626CE2B
 



Re: [pygame] Compilation

2012-02-18 Thread Zack Baker
Thank you all do much. I will try these today and report back

-Zack

On Feb 18, 2012, at 8:32 AM, Enrico Kochon ekoc...@uni-osnabrueck.de wrote:

 If Zack gets Pyinstaller to run on MacOs, this will be great!
 
 Struggling with py2app to the point were it run, was kind of driving me mad.
 
 
 Best regards
 
 Enno
 
 
 
 Am 18.02.2012 um 11:32 schrieb Sam Bull:
 
 On Fri, 2012-02-17 at 16:44 -0500, Zack Baker wrote:
 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!
 
 OK, if Pyinstaller were installed on your system you would run it with
 pyinstaller, but I haven't seen an installer for it. So, if you
 download the release on their website, and extract it to the home
 folder, you can run it with:
 python ~/pyinstaller-1.5.1/pyinstaller.py
 That is literally running the pyinstaller program in Python, much the
 same as you would run your own Python program from the terminal.
 
 Adding --onefile ensures it compiles the files into a single binary.
 
 -o foobar tells it which folder to save the output to. So, this would
 save it to the foobar folder inside whatever folder the terminal is
 in.
 
 spam/eggs.py tells it the top-level file of your project (the one you
 run to start the game). This would be the eggs.py file in the spam
 folder inside whatever folder the terminal is in.
 
 So, if you have Pyinstaller extracted in your home folder and your
 project is in the trunk folder, then this command should create a
 single binary in a pyinstaller/dist folder.
 
 python ~/pyinstaller-1.5.1/pyinstaller.py --onefile -o pyinstaller 
 trunk/helloworld.py
 
 Assuming you've downloaded the same version, obviously change the
 pyinstaller-1.5.1 if that's not what the folder is called after
 extraction.
 
 Oh, just remembered you may need to run this first, just once:
 python ~/pyinstaller-1.5.1/Configure.py
 
 -- 
 Sam Bull sambull.org
 PGP: 9626CE2B
 
 


Re: [pygame] Compilation

2012-02-17 Thread Jason M. Marshall
PyInstaller supposedly suports Mac OS X now, but I haven't tried it yet.
http://www.pyinstaller.org/

From: Zack Baker zbaker1...@gmail.com
To: Pygame pygame-users@seul.org 
Sent: Thursday, February 16, 2012 7:50 PM
Subject: [pygame] Compilation


I have a Mac with pygame 2.7.2 and pygasme 1.9.1. Is it possiblerr for me to 
'compile' my 2d game for distribution. BTW py2app has not really worked for me. 
Are there any alternatives? 
-Zack

Re: [pygame] Compilation

2012-02-17 Thread Zack Baker
Thank you, I think I'll try py installer 

-Zack

On Feb 17, 2012, at 8:23 AM, Jason M. Marshall j...@yahoo.com wrote:

 PyInstaller supposedly suports Mac OS X now, but I haven't tried it yet.
 http://www.pyinstaller.org/
 
 From: Zack Baker zbaker1...@gmail.com
 To: Pygame pygame-users@seul.org 
 Sent: Thursday, February 16, 2012 7:50 PM
 Subject: [pygame] Compilation
 
 
 I have a Mac with pygame 2.7.2 and pygasme 1.9.1. Is it possiblerr for me to 
 'compile' my 2d game for distribution. BTW py2app has not really worked for 
 me. Are there any alternatives? 
 -Zack
 


Re: [pygame] Compilation

2012-02-17 Thread Sam Bull
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



signature.asc
Description: This is a digitally signed message part


Re: [pygame] Compilation

2012-02-17 Thread Zack Baker
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.hack...@sent.com 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
 


Re: [pygame] Compilation

2012-02-17 Thread Andrew Godfroy
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@seul.org
Cc: pygame-users@seul.org
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.hack...@sent.com 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



Re: [pygame] Compilation

2012-02-17 Thread Julian Marchant
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 killer...@hotmail.com wrote:

 From: Andrew Godfroy killer...@hotmail.com
 Subject: Re: [pygame] Compilation
 To: pygame-users@seul.org
 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@seul.org
 Cc: pygame-users@seul.org
 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.hack...@sent.com
 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
  



Re: [pygame] Compilation

2012-02-17 Thread Andrew Godfroy
I gave the link because it both shows you how to do it and gave the links. 
Even though you can't use Install Creator on Mac, the first part of actually 
compiling the code to the .exe gets you half way there. All you would need 
to do now is just a Google search for Mac OSX Installation Creation Tool 
or something similar


-Original Message- 
From: Julian Marchant

Sent: Friday, February 17, 2012 6:37 PM
To: pygame-users@seul.org
Subject: Re: [pygame] Compilation

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 killer...@hotmail.com wrote:


From: Andrew Godfroy killer...@hotmail.com
Subject: Re: [pygame] Compilation
To: pygame-users@seul.org
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@seul.org
Cc: pygame-users@seul.org
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.hack...@sent.com
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




Re: [pygame] Compilation

2012-02-16 Thread Ian Mallett
On Thu, Feb 16, 2012 at 6:50 PM, Zack Baker zbaker1...@gmail.com wrote:


 I have a Mac with pygame 2.7.2 and pygasme 1.9.1. Is it possiblerr for me
 to 'compile' my 2d game for distribution. BTW py2app has not really worked
 for me. Are there any alternatives?
 -Zack

I am unaware of any other binary distribution techniques for Python on Mac
other than py2app.


Re: [pygame] Compilation

2012-02-16 Thread Julian Marchant
I use cx_Freeze for packaging up EXEs and Linux binaries. I don't have a Mac, 
so I don't know how well it works with them, but it's supposed to be 
cross-platform.

--- On Fri, 2/17/12, Zack Baker zbaker1...@gmail.com wrote:

 From: Zack Baker zbaker1...@gmail.com
 Subject: [pygame] Compilation
 To: Pygame pygame-users@seul.org
 Date: Friday, February 17, 2012, 1:50 AM
 
 I have a Mac with pygame 2.7.2 and pygasme 1.9.1. Is it
 possiblerr for me to 'compile' my 2d game for distribution.
 BTW py2app has not really worked for me. Are there any
 alternatives? 
 -Zack