Re: [Pyobjc-dev] recommended method of checking whether UniversalMacPython is installed?
Brought to you by:
ronaldoussoren
From: ytrewq1 <yt...@gm...> - 2006-06-21 13:42:10
|
On 6/21/06, Bob Ippolito <bo...@re...> wrote: > > On Jun 20, 2006, at 11:12 PM, Ronald Oussoren wrote: > > > There isn't a recommended way for that, or rather the recommended > > way is to not care. Why do you want to know? > > Probably for that QuickSilver meta-plugin, but it seems like a better > idea to just have the meta-plugin just embed a specific Python that > all of the python-based plugins depend on. Yes, it is for that meta-plugin. I'm not so sure it is practical to embed a specific Python in this case. IIUC, the size of the download will increase a fair bit and I'm under the impression that the location that's hosting the files for download may not be up to handling this. I plan to ask about this though after trying to estimate the likely change in size of the meta-plugin. If I do embed a specific Python though, is it easy to get all libraries that ship with Python to be embedded too? I ask because I have a plug-in which allows users to write somewhat sophisticated actions for Quicksilver using more-or-less 'ordinary' Python scripts and I don't think py2app will have a chance to analyze the import statements from those as they will be written and installed post-plug-in-installation. > A cheap way is to check the executable or dylib to see if it starts > with the four bytes '\xca\xfe\xba\xbe'. That's the signature for a > fat Mach-O object. Thanks for this tip. I will test this. |