On Jun 6, 2006, at 9:33 AM, Michael Glassford wrote: > Is it possible to build a universal binary version of a Py2App/PyObjC > based application that runs on pre-Tiger Macs? I assume this would > require doing the build on a non-Intel Mac, since you generally > have to > build it on the earliest system version you want to run it on to > get the > right Foundation and AppKit. If so, could you point me to more > information on how this is done?
All of it works with 10.3.9 out of the box. Anything else is unsupported and requires using gcc-3.3 for the PowerPC side and gcc-4.0 for the Intel side. Non-trivial. > What's the right way to detect within the application whether its > running on an Intel or a PowerPC Mac? I can figure out a way on my own > (such as looking at sys.byteorder), but I wonder if there's an > "official" way. The right way to detect is to not detect at all. Otherwise, it depends on what reason you're doing it. I'd probably use platform.processor(), which returns 'i386' or 'powerpc'.. but it returns 'powerpc' for ppc64 as well, so you might also want to check platform.architecture()[0] to be safe. You could probably also do these with sysctl. -bob _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig