Re: [Pythonmac-SIG] Packaging numpy with py2app

2006-07-18 Thread Bob Ippolito
On Jul 18, 2006, at 9:16 PM, Robert Kern wrote: > Josh Marshall wrote: >> so it seems like the entire purpose of PackageLoader is to make life >> difficult for me, just to save a few lines of typing. :) Seriously, >> can a numpy developer tell me why PackageLoader is necessary? > > I can't think

Re: [Pythonmac-SIG] Packaging numpy with py2app

2006-07-18 Thread Robert Kern
Josh Marshall wrote: > so it seems like the entire purpose of PackageLoader is to make life > difficult for me, just to save a few lines of typing. :) Seriously, > can a numpy developer tell me why PackageLoader is necessary? I can't think of a good reason why it's used in __init__.py the way

Re: [Pythonmac-SIG] [Numpy-discussion] Packaging numpy with py2app

2006-07-18 Thread Bob Ippolito
On Jul 18, 2006, at 7:26 PM, Josh Marshall wrote: > Thanks for the fix Bob. > > Unfortunately Matplotlib does not work with zipped data files, > after all that. So, we'll leave the recipes as is, as they work for > now. > > I suspect the way forward is to get numpy/Matplotlib/scipy working

Re: [Pythonmac-SIG] [Numpy-discussion] Packaging numpy with py2app

2006-07-18 Thread Josh Marshall
Thanks for the fix Bob. Unfortunately Matplotlib does not work with zipped data files, after all that. So, we'll leave the recipes as is, as they work for now. I suspect the way forward is to get numpy/Matplotlib/scipy working with setuptools and using pkg_resources to manage the data files.

Re: [Pythonmac-SIG] [Numpy-discussion] Packaging numpy with py2app

2006-07-18 Thread Bob Ippolito
On Jul 18, 2006, at 5:32 PM, Josh Marshall wrote: > Thanks for the info on how the various recipes work, Bob. Very > helpful. > > On 19/07/2006, at 9:28 AM, Bob Ippolito wrote: >> The recipe mechanism doesn't allow for it because it doesn't >> generally make sense. There are very few packages t

Re: [Pythonmac-SIG] [Numpy-discussion] Packaging numpy with py2app

2006-07-18 Thread Josh Marshall
Thanks for the info on how the various recipes work, Bob. Very helpful. On 19/07/2006, at 9:28 AM, Bob Ippolito wrote: > The recipe mechanism doesn't allow for it because it doesn't > generally make sense. There are very few packages that can find > their resources in an alternative manner. I'

Re: [Pythonmac-SIG] [Numpy-discussion] Packaging numpy with py2app

2006-07-18 Thread Bob Ippolito
On Jul 18, 2006, at 2:36 PM, Josh Marshall wrote: > On 18/07/2006, at 3:15 PM, Bob Ippolito wrote: >>> def check(cmd, mf): >>> m = mf.findNode('matplotlib') >>> if m is None or m.filename is None: >>> return None >>> mf.import_hook('pytz.zoneinfo', m, ['UTC']) >>> return d

Re: [Pythonmac-SIG] Adding resource fork support to tarfile.py

2006-07-18 Thread David M. Cooke
On Jul 18, 2006, at 17:17 , Apple Consultants Network wrote: Dear List, I am new to the list and new to python, so please be kind :) I've recently started playing with duplicity (http:// duplicity.nongnu.org) and really like the feature set that is offered by the project. However, I am

Re: [Pythonmac-SIG] [Numpy-discussion] Packaging numpy with py2app

2006-07-18 Thread Bob Ippolito
On Jul 18, 2006, at 3:48 PM, Christopher Barker wrote: > Josh Marshall wrote: >> However, I can't figure out how to copy resources in the recipe. It >> seems in recipes, you can return in the dict: packages, flatpackages, >> filters, loader_files, and prescripts. Could you enlighten me on >> th

Re: [Pythonmac-SIG] [Numpy-discussion] Packaging numpy with py2app

2006-07-18 Thread Christopher Barker
Josh Marshall wrote: > However, I can't figure out how to copy resources in the recipe. It > seems in recipes, you can return in the dict: packages, flatpackages, > filters, loader_files, and prescripts. Could you enlighten me on the use > of each of these? I wonder what the plan should be for

[Pythonmac-SIG] Adding resource fork support to tarfile.py

2006-07-18 Thread Apple Consultants Network
Dear List,I am new to the list and new to python, so please be kind :)  I've recently started playing with duplicity (http://duplicity.nongnu.org) and really like the feature set that is offered by the project.  However, I am being stung by the thorn in Apple's side; resource forks.  duplicity uses

Re: [Pythonmac-SIG] [Numpy-discussion] Packaging numpy with py2app

2006-07-18 Thread Josh Marshall
On 18/07/2006, at 3:15 PM, Bob Ippolito wrote: >> def check(cmd, mf): >> m = mf.findNode('matplotlib') >> if m is None or m.filename is None: >> return None >> mf.import_hook('pytz.zoneinfo', m, ['UTC']) >> return dict( >> packages = ['matplotlib'] >> ) >> >> If

Re: [Pythonmac-SIG] Setting the Screen Saver

2006-07-18 Thread has
Simon Brunning wrote: > Is there a way of setting the OS X screen saver using Python? > > The System Preferences ap looks like it's AppleScript (and hence > appscript) drivable, but I can't work out how to make it actually > change any settings. System Preferences' scripting support is rudimentar

[Pythonmac-SIG] Setting the Screen Saver

2006-07-18 Thread Simon Brunning
Is there a way of setting the OS X screen saver using Python? The System Preferences ap looks like it's AppleScript (and hence appscript) drivable, but I can't work out how to make it actually change any settings. I've also found the screen saver plist, but it's binary rather than XML, so I'd rat