[Pythonmac-SIG] Universal binary SciPy on OS X

2006-12-14 Thread Josh Marshall
I have been trying to build a universal SciPy that works, so I can include it in a redistributable application I build with py2app. The one at http://pythonmac.org/packages/py24-fat/index.html is *incomplete*, it contains some dynamic libraries which are ppc only, which is what also happens

Re: [Pythonmac-SIG] Das Keyboard

2006-10-12 Thread Josh Marshall
On 13/10/2006, at 4:02 AM, Perry Smith < wrote: > > I bought a keyboard called Das Keyboard. When I plug it in, the > Mac needs me to hit two keys so it can identify the keyboard. > > Does Python on the Mac have any way to catch this "event" (it may > not be an event actually)? I don't know,

Re: [Pythonmac-SIG] building pyopengl on Tiger?

2006-09-28 Thread Josh Marshall
As a side note to this discussion on building PyOpenGL 2.0, I'd like to mention that Mike Fletcher is working on OpenGL-ctypes, which is to become PyOpenGL 3.0. I am working on the Mac OS X porting work. Many of the simpler tests now run, but there are still many issues to be worked out. Wit

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 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 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] [Numpy-discussion] Packaging numpy with py2app

2006-07-17 Thread Josh Marshall
Thanks Bob, On 18/07/2006, at 2:01 PM, Bob Ippolito wrote: > To do "includes", you need to manipulate the modulegraph instance. > Take a look at the docutils recipe for an example. 'packages' is in > the return value because that need to be dealt with by py2app, not > modulegraph. Can you ch

[Pythonmac-SIG] Memory errors implementing an NSCell to show colors in an NSTableView

2006-07-17 Thread Josh Marshall
I have been trying to get an application using PyObjC to display colors in an NSTableView. In my searching around, it seems the consensus is "NSColorWell isn't an NSCell, create your own subclass of NSCell which just shows the color." So, with no further information, I tried this with an NSC

[Pythonmac-SIG] Packaging numpy with py2app

2006-07-16 Thread Josh Marshall
Back in December last year, I was building a PyObjC application that embedded numpy (scipy_core at the time), scipy and matplotlib. I ran into a few issues doing so, some of which were resolved. One was the inability for scipy to run from a zipped site-packages. I worked around this by expa