Re: [pygame] help: how to make a mac osx installer?

2008-02-05 Thread René Dudfield
ya! cool, now just have to finish mac osx scrap, then test it on a ppc machine to make sure it works. I also noted that midi bug on mac osx with mixer.music.play(-1). I haven't been able to figure out what that is, I think it might be a SDL_mixer bug. I added a test program to the bug tracker..

Re: [pygame] help: how to make a mac osx installer?

2008-02-04 Thread Brian Fisher
sweet! It works... I just ran a couple of my projects and they worked great... in particular they used png loading and created an openGL window. I think it would b great to get more people testing with that build re: the i386 vs. PPC thing, I think "otool -f" will tell you what architectures the f

Re: [pygame] help: how to make a mac osx installer?

2008-02-04 Thread René Dudfield
thanks. ah, apparently -static doesn't work on osx unless all of them are static. """ This option will not work on Mac OS X unless all libraries (includ- ing libgcc.a) have also been compiled with -static. Since neither a static version of libSystem.dylib nor crt0.o are prov

Re: [pygame] help: how to make a mac osx installer?

2008-02-04 Thread Brian Fisher
hmm... it doesn't appear to be any different: ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pygame/imageext.so, 2): Library not loaded: /usr/local/lib/libpng.3.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.

Re: [pygame] help: how to make a mac osx installer?

2008-02-04 Thread René Dudfield
hi again, Brian, can you please try this (UNTESTED!!!) file? It should have libpng, and libjpeg statically linked in. http://rene.f0o.com/~rene/stuff/pygame-1.8.0rc3-py2.5-macosx10.4.mpkg.zip Note, I haven't finished updating the scrap module yet - but everything else should work. cheers,

Re: [pygame] help: how to make a mac osx installer?

2008-02-03 Thread Brian Fisher
There's no libpng dylib in the sdl_image framework - I think sdl_image is including libpng as a static lib. The same dylib-free SDL_image framework should be what my 2.4 install on the same computer is using and it can load .png's fine, which is what leads me to think that. Also the error is when l

Re: [pygame] help: how to make a mac osx installer?

2008-02-03 Thread René Dudfield
Thanks. yeah, it should be in there... I'll double check next time I'm on the dev mac. Unless you can check it first? Strange, that I didn't get that when I tried the installer, on a fresh 10.4 mac. The installer in bdist_mpkg_support.py looks for frameworks only, not dylib modules. So I think

Re: [pygame] help: how to make a mac osx installer?

2008-02-03 Thread Ian Mallett
That's horrible! Someone should fix that.

Re: [pygame] help: how to make a mac osx installer?

2008-02-03 Thread René Dudfield
py2app is for creating mac apps - from the mac. It would be great if it could work from windows... but it'd probably take more work. Note, it should be possible with a gcc cross compiler... but probably a pretty hard thing to get working. On Feb 4, 2008 8:26 AM, Ian Mallett <[EMAIL PROTECTED]>

Re: [pygame] help: how to make a mac osx installer?

2008-02-03 Thread Ian Mallett
While we're on macs... I get this error compiling w/ py2app: *** creating application bundle: Gravity *** Traceback (most recent call last): File "C:\dev\Python25\lib\site-packages\py2app- 0.3.6-py2.5.egg\py2app\build_ap p.py", line 548, in _run self.run_normal() File "C:\dev\Python25\lib\site-pac

Re: [pygame] help: how to make a mac osx installer?

2008-02-03 Thread Brian Fisher
I got this error with that installer: ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pygame/imageext.so, 2): Library not loaded: /usr/local/lib/libpng.3.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-

Re: [pygame] help: how to make a mac osx installer?

2008-02-03 Thread Brian Fisher
I tried building PyObjC 2.0 for my user-install of Python 2.5.1 on Leopard, but it seems like a big hassle... ... But it runs out the 10.4 installer for PyObjC 1.4 here works just fine with the installer Rene made: http://pythonmac.org/packages/py25-fat/ http://pythonmac.org/packages/py25-fat/mpkg

Re: [pygame] help: how to make a mac osx installer?

2008-01-24 Thread René Dudfield
Cool. That's only about 140 lines of code. So maybe 300-600 lines of objc to replace it. Maybe less if we don't use the SDL 1.2.8 workaround. Also there is the (now incomplete) scrap module, that require pyobjc. See the mac_scrap.py file. This currently isn't working since we changed the API o

Re: [pygame] help: how to make a mac osx installer?

2008-01-24 Thread Brian Fisher
With respect to removing the PyObjC dependency, what the pyobjc piece does seems pretty straightforward and wel contained - PyObjC stuff is used only n the macosx.py file, and is only called from PyGame_Video_AutoInit in the C source. Basically the code makes sure that the python process can have w

Re: [pygame] help: how to make a mac osx installer?

2008-01-24 Thread Brian Fisher
On Jan 24, 2008 1:49 PM, René Dudfield <[EMAIL PROTECTED]> wrote: > Do you feel like looking into how much work removing the pyobjc > requirement would be? > yes.

Re: [pygame] help: how to make a mac osx installer?

2008-01-24 Thread René Dudfield
btw. I just tested that installer on another apple mac book, and it seems to work (after installing pyobjc). It's a 10.4 machine. Do you feel like looking into how much work removing the pyobjc requirement would be? On Jan 25, 2008 8:43 AM, Brian Fisher <[EMAIL PROTECTED]> wrote: > Pygame alr

Re: [pygame] help: how to make a mac osx installer?

2008-01-24 Thread René Dudfield
Yeah, it's probably possible. I'm not sure how extensive pygames use of pyobjc is - or how much work it would be to replace it. Maybe not something to do at this point for the 1.8 release? I'm really not sure though. Perhaps it's only a page full of code that needs changing. cu. On Jan 25,

Re: [pygame] help: how to make a mac osx installer?

2008-01-24 Thread Brian Fisher
Pygame already works with both, I think the difficulties are simply in getting a working installer of the appropriate pyobjc for your python/OS version. ... also, it may actually be possible just to remove any pygame dependencies on pyobjc entirely On Jan 24, 2008 1:40 PM, René Dudfield <[EMAIL P

Re: [pygame] help: how to make a mac osx installer?

2008-01-24 Thread René Dudfield
sorry. What we probably need to do is just make pygame work with pyobjc 2.x or 1.4x Which has probably been done already by Noah and the mac ports? On Jan 25, 2008 8:31 AM, René Dudfield <[EMAIL PROTECTED]> wrote: > Maybe we could release a couple of different versions. > > That seems to be the

Re: [pygame] help: how to make a mac osx installer?

2008-01-24 Thread René Dudfield
Maybe we could release a couple of different versions. That seems to be the easiest way forward. But it'd be nicer for users if there were less files to have to choose from to download. As far as I know pyobc 2.x doesn't work on 10.x, So we'd have to include both pyobc 2.x and 1.4.x for the pyt

Re: [pygame] help: how to make a mac osx installer?

2008-01-24 Thread Casey Duncan
On Jan 24, 2008, at 12:22 AM, Brian Fisher wrote: So what would other Leopard users want from a pygame install? I think I'd personally like to use the Leopard python for simplicity in that it's a fixed target, but I imagine some people would perfer not to mess with OS components? I would strong

Re: [pygame] help: how to make a mac osx installer?

2008-01-24 Thread Brian Fisher
It doesn't seem to want to install on the leopard 2.5.1 python - I get the error: "You cannot install pygame 1.8.0rc3 on this volume. pygame requires System Python 2.5 to install." I expect there is probably a way to make the installer accept either 2.5.1 python, I think the pyglet people may have

Re: [pygame] help: how to make a mac osx installer?

2008-01-23 Thread René Dudfield
Can you please try this (UNTESTED!!!) file? http://rene.f0o.com/~rene/stuff/pygame-1.8.0rc3-py2.5-macosx10.4.mpkg.zip On Jan 24, 2008 4:57 PM, Brian Fisher <[EMAIL PROTECTED]> wrote: > When running the installer I ge

Re: [pygame] help: how to make a mac osx installer?

2008-01-23 Thread René Dudfield
I'm not sure if we'll need a separate download for Leopard or not? Any ideas about that? I could probably provide one built with the system python (2.3 for 10.4). On Jan 24, 2008 4:57 PM, Brian Fisher <[EMAIL PROTECTED]> wrote: > When running the installer I get this: > "You cannot install py

Re: [pygame] help: how to make a mac osx installer?

2008-01-23 Thread René Dudfield
Ah cool, thanks. That's obviously using the wrong python... (it's using the python installed with maya). This one isn't tested except on my system. So it's not likely to work very well. I'm new to osx installers :) I'll try making one with the python from here... http://python.org/download/

Re: [pygame] help: how to make a mac osx installer?

2008-01-23 Thread Brian Fisher
When running the installer I get this: "You cannot install pygame 1.8.0rc3 on this volume. pygame requires /Applications/Autodesk/maya2008/Maya.app/Contents/Frameworks Python 2.5 to install." The maya part of things is rather unexpected. Also is this supposed to work on the leopard system python?

Re: [pygame] help: how to make a mac osx installer?

2008-01-23 Thread René Dudfield
I was asking for pygame itself. What you have is cool though :) On Jan 24, 2008 4:07 PM, Casey Duncan <[EMAIL PROTECTED]> wrote: > On Jan 23, 2008, at 6:07 PM, René Dudfield wrote: > > > hello, > > > > does anyone know how to make a mac osx installer for pygame? > > > > How do you do it? > > Fo

Re: [pygame] help: how to make a mac osx installer?

2008-01-23 Thread Casey Duncan
On Jan 23, 2008, at 6:07 PM, René Dudfield wrote: hello, does anyone know how to make a mac osx installer for pygame? How do you do it? For a game written in pygame or for pygame itself? If it's the former, I have an example here that creates an application bundle using py2app and then cr

Re: [pygame] help: how to make a mac osx installer?

2008-01-23 Thread René Dudfield
I forgot to install bdist_mpkg before running setup.py bdist_mpkg Install this: http://pypi.python.org/pypi/bdist_mpkg/ Then run python setup.py bdist_mpkg Here is the resulting (UNTESTED!!!) file: http://rene.f0o.com/~rene/stuff/pygame-1.8.0rc3-py2.5-macosx10.4.mpkg.zip cheers, On Jan 24,

Re: [pygame] help: how to make a mac osx installer?

2008-01-23 Thread Noah Kantrowitz
René Dudfield wrote: hello, does anyone know how to make a mac osx installer for pygame? How do you do it? Macports should let me do it. I'll poke in the AM. --Noah signature.asc Description: OpenPGP digital signature

[pygame] help: how to make a mac osx installer?

2008-01-23 Thread René Dudfield
hello, does anyone know how to make a mac osx installer for pygame? How do you do it? cheers,