Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-12 Thread Bob Ippolito
On Feb 11, 2005, at 12:26 PM, Roger Binns wrote: All the example code is in Objective C. Quite simply there is far too steep a learning curve to get through these layers be it Objective C or pseudo objects in C plus mapping into Python land. Uh, no it isn't. A fair share of the IOKit examples are

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-11 Thread Roger Binns
All the example code is in Objective C. Quite simply there is far too steep a learning curve to get through these layers be it Objective C or pseudo objects in C plus mapping into Python land. Uh, no it isn't. A fair share of the IOKit examples are pure C or C++. Ok, more accurately the examples

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-11 Thread Bob Ippolito
On Feb 11, 2005, at 3:15, Roger Binns wrote: You don't need to touch Objective-C at all! IOKit is plain old C. All the example code is in Objective C. Quite simply there is far too steep a learning curve to get through these layers be it Objective C or pseudo objects in C plus mapping into Python

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-11 Thread Roger Binns
You don't need to touch Objective-C at all! IOKit is plain old C. All the example code is in Objective C. Quite simply there is far too steep a learning curve to get through these layers be it Objective C or pseudo objects in C plus mapping into Python land. It really is orders of magnitude easie

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-11 Thread Roger Binns
You're probably not setting the right plist keys or something for Apple's help. The documentation doesn't make it clear what should be set. Additionally I have no idea how to make them from Python so I can automate all this. Python does it, see: python/dist/src/Mac/OSX/Doc There is a heroic amount

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-10 Thread Bob Ippolito
On Feb 10, 2005, at 2:38 AM, Bob Ippolito wrote: On Feb 10, 2005, at 2:25 AM, Roger Binns wrote: Incidentally I did find a gross hack to work around the py2app bug of not handling the optimise option. Stripping out the doc strings saves over 3MB of compressed size, and aren't useful in the binary

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-10 Thread Bob Ippolito
On Feb 10, 2005, at 8:05, Charles Hartman wrote: On Feb 9, 2005, at 11:47 PM, Roger Binns wrote: I'm not sure whether to ask if you could explain "compile them into the executable" (I don't know how to do that; I have to give my app to Windows people, but actually (*knowing* anything about Window

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-10 Thread Charles Hartman
That's extremely helpful. I'd downloaded the setup script before and planned to study it -- now I'll go back to it. (Wish it did the py2app stuff, for self-pedagogical reasons -- but py2app does make things easier rather than harder.) And for me at least, the slide-show gives quite useful overv

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-10 Thread Bob Ippolito
On Feb 10, 2005, at 3:57, Roger Binns wrote: Probably because it doesn't have drivers for them. If there's no matching driver, it won't pull up a useful nub to stick on it. The right thing happens in the end. There is no need for drivers on some interfaces, and they must be used on others (eg on

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-10 Thread Roger Binns
Probably because it doesn't have drivers for them. If there's no matching driver, it won't pull up a useful nub to stick on it. The right thing happens in the end. There is no need for drivers on some interfaces, and they must be used on others (eg ones that implement the USB modem protocol or t

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-10 Thread Bob Ippolito
On Feb 10, 2005, at 3:26 AM, Roger Binns wrote: Every option py2app takes is documented: python setup.py py2app --help I started at http://pythonmac.org/wiki/py2app It would probably be helpful to add the above output to that page. Uh.. yeah, it would be useful to have some web documentation. I wi

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-10 Thread Roger Binns
Every option py2app takes is documented: python setup.py py2app --help I started at http://pythonmac.org/wiki/py2app It would probably be helpful to add the above output to that page. You're probably not setting the right plist keys or something for Apple's help. The documentation doesn't make it

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-10 Thread Bob Ippolito
On Feb 10, 2005, at 2:51 AM, Roger Binns wrote: Obviously not people familiar with http://developer.apple.com/ :) Actually Steven Palm who did most of the original got some changes I still don't understand into libusb to make it work correctly on Mac. There is deep voodoo involved since some of th

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-10 Thread Bob Ippolito
On Feb 10, 2005, at 3:00 AM, Roger Binns wrote: So don't bother building a 10.3 version. The 10.2 version should work fine. That is what was tried first - we don't want the extra work! I don't know what the issue was, but there was some incompatibility. There shouldn't be. If there is, it's pro

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-10 Thread Roger Binns
So don't bother building a 10.3 version. The 10.2 version should work fine. That is what was tried first - we don't want the extra work! I don't know what the issue was, but there was some incompatibility. Did you know py2app had a --strip option, which does strip -x -S? Nope. The way this wo

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Roger Binns
Obviously not people familiar with http://developer.apple.com/ :) Actually Steven Palm who did most of the original got some changes I still don't understand into libusb to make it work correctly on Mac. There is deep voodoo involved since some of the phones are actually composite devices and MacO

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Bob Ippolito
On Feb 10, 2005, at 2:38 AM, Bob Ippolito wrote: On Feb 10, 2005, at 2:25 AM, Roger Binns wrote: I'd like to see that pie slice for the Mac OS X build to shrink even further.. You aren't satisfied with being the smallest amount of code already ?-) I don't really care what the other platforms look

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Bob Ippolito
On Feb 10, 2005, at 2:25 AM, Roger Binns wrote: I'd like to see that pie slice for the Mac OS X build to shrink even further.. You aren't satisfied with being the smallest amount of code already ?-) I don't really care what the other platforms look like, but I want py2app setup files to be as com

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Roger Binns
I'd like to see that pie slice for the Mac OS X build to shrink even further.. You aren't satisfied with being the smallest amount of code already ?-) I took at a look at your setup.py, and it looks a fair amount of it doesn't need to be specified: More accurately you are looking at code that ha

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Bob Ippolito
On Feb 10, 2005, at 1:36 AM, Roger Binns wrote: In your presentation BTW I only got a Mac (mini) a few weeks ago, so all my information was based on what other people contributed. Obviously not people familiar with http://developer.apple.com/ :) you say that serial devices on the Mac are in /dev w

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Roger Binns
In your presentation BTW I only got a Mac (mini) a few weeks ago, so all my information was based on what other people contributed. you say that serial devices on the Mac are in /dev with "no other information". That is totally not true, unless you say "no other information available from POS

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Bob Ippolito
On Feb 9, 2005, at 23:47, Roger Binns wrote: You can make a single app appear be in the native installer format for each platform. We did it for BitPim. Go ahead, download and try it. You don't actually need a cell phone for the program to run. This is the Python code used to do the installer wo

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Bob Ippolito
On Feb 9, 2005, at 23:47, Roger Binns wrote: I'm not sure whether to ask if you could explain "compile them into the executable" (I don't know how to do that; I have to give my app to Windows people, but actually (*knowing* anything about Windows . . .) or if you could explain "(bleh)" -- but ma

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Roger Binns
I'm not sure whether to ask if you could explain "compile them into the executable" (I don't know how to do that; I have to give my app to Windows people, but actually (*knowing* anything about Windows . . .) or if you could explain "(bleh)" -- but maybe the one question answers the other. Oh w

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Bob Ippolito
On Feb 9, 2005, at 22:34, Charles Hartman wrote: On Feb 9, 2005, at 10:29 PM, Bob Ippolito wrote: On Windows, you either put the data files in some arbitrary fixed place (may be relative to the executable), or you compile them into the executable as resources (bleh). I'm not sure whether to ask

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Charles Hartman
On Feb 9, 2005, at 10:29 PM, Bob Ippolito wrote: On Windows, you either put the data files in some arbitrary fixed place (may be relative to the executable), or you compile them into the executable as resources (bleh). I'm not sure whether to ask if you could explain "compile them into the exec

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Bob Ippolito
On Feb 9, 2005, at 10:13 PM, Charles Hartman wrote: On Feb 9, 2005, at 9:04 PM, Bob Ippolito wrote: You should never, ever, ever, ever, ever write inside of a bundle anyway. You should make this runtime directory in /tmp, /Library/Application Support/, etc. In fact, I was thinking that I shou

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Charles Hartman
I've got this gospel, but I wonder how it relates to your message, a little while back, saying -- if I understood you right! -- that there's nowhere in a Windows application to put a data file that's comparable to putting it inside the bundle (as Apple wants). Am I terminally confused, or o

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Richard Jones
On 10/02/2005, at 1:04 PM, Bob Ippolito wrote: You should never, ever, ever, ever, ever write inside of a bundle anyway. You should make this runtime directory in /tmp, /Library/Application Support/, etc. Oh, OK :) I readily admit that I was being slack (actually, mostly I'm in a hurry) in usin

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Bob Ippolito
On Feb 9, 2005, at 20:55, Richard Jones wrote: On 10/02/2005, at 12:38 PM, Bob Ippolito wrote: I tried to reproduce this problem by dropping your Python dylib into my framework, and it worked fine.. what version of Mac OS X are you using and have you tried it a second time after killing build a

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Richard Jones
On 10/02/2005, at 12:38 PM, Bob Ippolito wrote: I tried to reproduce this problem by dropping your Python dylib into my framework, and it worked fine.. what version of Mac OS X are you using and have you tried it a second time after killing build and dist? That was it - I needed to clean out

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Bob Ippolito
On Feb 9, 2005, at 20:00, Richard Jones wrote: On 10/02/2005, at 10:35 AM, Bob Ippolito wrote: The current svn trunk of py2app is probably suitable for this. It now: - Strips by default. -S and --strip are still there for compatibility, but they are a no-op (does anyone care if I remove thi

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Richard Jones
On 10/02/2005, at 10:35 AM, Bob Ippolito wrote: The current svn trunk of py2app is probably suitable for this. It now: - Strips by default. -S and --strip are still there for compatibility, but they are a no-op (does anyone care if I remove this compatibility?) I get the following error durin

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Richard Jones
On 10/02/2005, at 10:35 AM, Bob Ippolito wrote: - Adds a Python interpreter to the bundle to where sys.executable is (only supported for framework builds right now) Thanks Bob! I'll have a play straight away :) Richard ___ Pythonmac-SIG maillist -

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-09 Thread Bob Ippolito
On Feb 3, 2005, at 7:58 PM, Richard Jones wrote: On Fri, 4 Feb 2005 01:34 am, Bob Ippolito wrote: No, py2app just doesn't give you a regular Python interpreter.. so, that's a problem I guess. I'm not sure what to suggest. Yep, looks like it's the killer for the py2app'ed Zope. I'm going to investi

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-03 Thread Richard Jones
On 04/02/2005, at 12:05 PM, Bob Ippolito wrote: I'll see about adding an optional regular Python interpreter to the bundle, but that probably won't happen for a few weeks. No sweat - I've just introduced our target users to running Zope from the command-line which will suffice for now :) Ric

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-03 Thread Bob Ippolito
On Feb 3, 2005, at 19:58, Richard Jones wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 4 Feb 2005 01:34 am, Bob Ippolito wrote: No, py2app just doesn't give you a regular Python interpreter.. so, that's a problem I guess. I'm not sure what to suggest. Yep, looks like it's the killer

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-03 Thread Richard Jones
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 4 Feb 2005 01:34 am, Bob Ippolito wrote: > No, py2app just doesn't give you a regular Python interpreter.. so, > that's a problem I guess. I'm not sure what to suggest. Yep, looks like it's the killer for the py2app'ed Zope. I'm going to inv

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-03 Thread Bob Ippolito
On Feb 3, 2005, at 2:47, Richard Jones wrote: On 03/02/2005, at 6:12 PM, Bob Ippolito wrote: On Feb 2, 2005, at 19:08, Richard Jones wrote: OK, starting at it again this morning, I've made some progress getting things configured correctly to start up Zope. I've hit another roadblock though -- Zo

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-02 Thread Richard Jones
On 03/02/2005, at 6:12 PM, Bob Ippolito wrote: On Feb 2, 2005, at 19:08, Richard Jones wrote: OK, starting at it again this morning, I've made some progress getting things configured correctly to start up Zope. I've hit another roadblock though -- Zope needs to fork/exec off new processes. I c

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-02 Thread Bob Ippolito
On Feb 2, 2005, at 19:08, Richard Jones wrote: OK, starting at it again this morning, I've made some progress getting things configured correctly to start up Zope. I've hit another roadblock though -- Zope needs to fork/exec off new processes. I can't actually find a Python interpreter in the ap

[Pythonmac-SIG] Zope py2app, some progress

2005-02-02 Thread Richard Jones
OK, starting at it again this morning, I've made some progress getting things configured correctly to start up Zope. I've hit another roadblock though -- Zope needs to fork/exec off new processes. I can't actually find a Python interpreter in the app generated by py2app, and I suspect one isn't