hi
there was a gui version for py2exe (windows equivalent of py2app) but i
dont know any for py2app. Anyway if what you are doing is simple you can
easily deal with the setup.py script.
this is the py2app documentation
http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html
the option reference
http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html#option-reference
Attached there is an example of a setup.py script that uses pygame, i
think it should work, you just need to edit the name variable and run it
like this
$ python setup.py py2app
However if you have assets like images, sounds etc... you need to make
sure that they are also included, check the extra_file variable. IN that
example it will put a file "data/slicer_pd.pd" into a folder called
"data" inside the app. Otherwise keep extra_files = []
Please anyone correct if there is anything wrong, i just quickly put
this together from another more complex script.
good luck
enrike
jack rothwell(e)k dio:
hi.
can anyone tell me how to use py2app? im just a novice python
programmer and i have no idea how to use it. does anyone know if
theres a gui version around? i have no idea what distutils or
anything like that even MEANS. i just want to be able to send pygame
games to friends.
please help! give me a push in the right direction!
una.x
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
"""
py2app build script.
Usage : $ python setup.py py2app
"""
from distutils.core import setup
import sys, shutil, os
name = 'yourmainscriptname.py' # put your main script name here
extra_files = [ ("data", ["data/slicer_pd.pd",
"data/sampler.pd",
"data/flower2.wav" ]
) ]
import py2app
options = dict( py2app = dict( packages = [ 'pygame'],
resources = extra_files,
)
)
setup( app = [ name ], )
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig