[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Removing PyObjc Dependency
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Removing PyObjc Dependency
- From: "Brian Fisher" <brian@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 20 Jan 2009 10:17:30 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 20 Jan 2009 13:17:35 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:x-google-sender-auth; bh=FAr/a/Bo8LNxOo1Pbww4rE4CAzTIa5hA3mhmWSTJj78=; b=DaDnQizn94ujH5PsKTwBlMWw3hIoMi1EAP1SEI0CP04Dg8g3p/SOC3Ms9P5qBioe5N 5pJ0lOZXwbbp2c5UHQJtCvDb0q8OA/qpHGpQgK+Q3FoYWaDveWAVyy+hPQBqUQu7VlUu oPKb/Vf0hmuT+ezqo6lXTreY4TgO9bLk8KFfM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :x-google-sender-auth; b=kLwpmWEnmwjUkB6SVCR9afb/GBIhDnJuJh0gPNBJf83h66VWFM5o4BzbvggrhTE4VO xvT6HXh1aCZfFnSpOfOi6EKo8w+NFLcRr9Umsqdhw6Erpc/s3UlV61TdxMWA3sBHk2rD Hg6dkbDlZfNgCDj+MyABKtCvINY3K9oDrr8ik=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
In a local not-committed version, I ported a combination of the pyobjc dependent python code and SDL's SDLmain.m to an objective c file called sdlmain_osx.m that becomes an extension module names pygame.sdlmain_osx (which I plan on being undocumented), and it builds with Python 2.6 on Leopard and the built pygame works fine with all the scripts I could find. Before I checked it in though, I wanted to ask a question about build process stuff...
So the thing I wanted advice on is how to include a file & a module for mac os x builds only - that's something I'm not doing at all right now, and I don't think we have an example of a platform specific extension module being built in, right? So I'm thinking I'll just hacking something new in to config.py's writesetupfile function (maybe make a setup_darwin.in file and translate that file into setup after setup.in is processed?) Nobody sees any problem with adding an undocumented extension module to one platform like this, do they? Any obviously better approaches?