Re: [Pythonmac-SIG] py2app with matplotlib

2009-02-03 Thread Brian Zambrano
On Mon, Feb 2, 2009 at 11:00 PM, Brian Zambrano wrote: > When I do: > > bri...@omaha$ ls -F > dist/plot_in_wx_test.app/Contents/Resources/lib/python2.5/ > config@matplotlib/site-packages.zip > lib-dynload/ numpy/ site.py@ > > Yet, when I try to run > ./dist/w

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Ronald Oussoren
On 3 Feb, 2009, at 17:49, Bill Janssen wrote: Ronald Oussoren wrote: if I understand the LSUIElement document correctly the setting you propose would make it impossible to use "python sometkscript.py" to run a simple GUI script. Then you misunderstand either LSUIElement, or the discussio

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Bill Janssen wrote: > It would, and that's actually the "long-standing infrastructure of > Python on the Mac" that you refer to. The Python.app formulation is > recent, and not yet well-enough debugged. Though, I should hasten to say, I think removing the distinction between python and pythonw

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Kevin Walzer wrote: > Bill, the behavior that you experiencing is the expected behavior of > Python, albeit not what you want in this instance. Rather than re-doing > the long-standing infractucture of Python on the Mac, wouldn't it be > better to find the code that is causing the undesired "r

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Christopher Barker
Kevin Walzer wrote: My development is of GUI apps, and I like being able to double-click on a Python script and have it do the Right Thing--that is, launch as a foreground GUI process in Tkinter. I think it's clear that lot's of us want that. the question is, will the proposal break that? O

[Pythonmac-SIG] [Fwd: Re: Should Python.app be an LSUIElement = 1 app?]

2009-02-03 Thread Kevin Walzer
Looks like this died in cyberspace... --- Begin Message --- Bill Janssen wrote: has wrote: Annoying, but tweaking the Python.app bundle's LSBackgroundOnly/LSUIElement flags isn't a solution, it's a kludge - one that will take us back to the bad old days where some scripts automatically fail w

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Kevin Walzer
Bill Janssen wrote: has wrote: Annoying, but tweaking the Python.app bundle's LSBackgroundOnly/LSUIElement flags isn't a solution, it's a kludge - one that will take us back to the bad old days where some scripts automatically fail when run with 'python'. *Right now*, some scripts fail when

Re: [Pythonmac-SIG] py2app

2009-02-03 Thread Christopher Barker
Henning Hraban Ramm wrote: Hm, what do you mean? Should there be a standalone py2app script anywhere? nope. I know only "python setup.py py2app", right, so you add the -A: python setup.py py2app -A > and therefore I'd need to write a setup.py which is trivial for the simple case, and y

[Pythonmac-SIG] py2app with matplotlib

2009-02-03 Thread Brian Zambrano
I've searched around and found some mentions of problems when building apps with matplotlib, but didn't see any definitive solutions. I'm trying to build a simple using matplotlib, numpy and wx. My setup.py looks like this: from setuptools import setup APP = ['plot_in_wx_test.py'] DATA_FILES =

Re: [Pythonmac-SIG] py2app (was: Should Python.app be an LSUIElement = 1 app?)

2009-02-03 Thread Henning Hraban Ramm
Am 2009-02-03 um 18:54 schrieb Christopher Barker: Most of *my* wxPython-based (actually dabo-based) tools don't even need to be an app bundle - doubleclicking some .py file is mostly enough. Check out "py2app -A". It's perfect for this kind of use. Hm, what do you mean? Should there be a

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Ronald Oussoren
On 3 Feb, 2009, at 18:55, Bill Janssen wrote: Ronald Oussoren wrote: On 3 Feb, 2009, at 17:54, Bill Janssen wrote: I'm seriously wondering if having "Python Launcher.app" is a good idea, and if we shouldn't scrap it entirely. If building full app bundles using py2app is too much of a bur

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Christopher Barker wrote: > This is a concern -- what if I do need to "Force Quit" my app? I can > probably find it with ps, and kill it with kill, but that's only > because I was a Linux geek before I got a Mac. Then give your app its own Info.plist. There are zillions of processes running on

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Chris, I'm a bit confused, too. > Could someone (Bill?) summarize what functionally will change if this > change is applied? Basically, if you're running /usr/bin/python or Python.app directly, you still won't get a dock icon even if you're using appscript. The app is marked as an agent applicat

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Ronald Oussoren wrote: > > On 3 Feb, 2009, at 17:54, Bill Janssen wrote: > > > >> I'm seriously wondering if having "Python Launcher.app" is a good > >> idea, and if we shouldn't scrap it entirely. If building full app > >> bundles using py2app is too much of a burden we could look into > >> pro

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Christopher Barker
Henning Hraban Ramm wrote: Most of *my* wxPython-based (actually dabo-based) tools don't even need to be an app bundle - doubleclicking some .py file is mostly enough. Check out "py2app -A". It's perfect for this kind of use. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Re

Re: [Pythonmac-SIG] wx Window Flashes and Closes Immediately

2009-02-03 Thread Christopher Barker
Robin Dunn wrote: I thought Robin said that this default was going to be changed, so that newbies would have this issue less -- what happened to that? I didn't think it would be a good idea to change a default like this between two 2.8.x releases, but it's already changed in the 2.9 source tr

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Christopher Barker
Ronald Oussoren wrote: I'm seriously wondering if having "Python Launcher.app" is a good idea, and if we shouldn't scrap it entirely. I wonder, too, but if we do keep it, it could have the full-gui info.plist anyway -- would that work? -Chris -- Christopher Barker, Ph.D. Oceanographer Eme

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Christopher Barker
Bill, Thanks for making the effort to understand and explain all this. Many of us remember the many "why won't this work!" posts to the mailing list so we just want to be careful. Some concerns: ``LSUIElement (String). If this key is set to '1', Launch Services runs the application as a

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Christopher Barker
Bill Janssen wrote: Ronald Oussoren wrote: The fully standalone bundles that py2app creates are very useful, but I definitely see the need for very thin .app bundles as well. Interesting idea. What's the lightest thing that's an app, anyway? You can run py2app in "Alias" mode ($python setu

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Christopher Barker
First: I've read this thread, I've read the Apple docs (at least one level deep -- I really don't "get" this stuff, and I don't have the time to learn it all!) I still don't "get" what LSUIElement is supposed to do, and what functionality will change if it's set. I did try setting it on my

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Ronald Oussoren
On 3 Feb, 2009, at 17:54, Bill Janssen wrote: I'm seriously wondering if having "Python Launcher.app" is a good idea, and if we shouldn't scrap it entirely. If building full app bundles using py2app is too much of a burden we could look into providing an easier and more lightweight way to buil

[Pythonmac-SIG] setting LSUIElement in Python.app Info.plist

2009-02-03 Thread Bill Janssen
I have to say, I find the somewhat uninformed resistance to this idea incredible. It's an *idea*, folks, not a patch. It can't hit OS X in any form till 10.7, which is well over a year away. Relax -- try it out, read the docs, and report back. Let's *find out* what the effects of doing this wou

Re: [Pythonmac-SIG] MacPython sprint at PyCon'09?

2009-02-03 Thread Christopher Barker
Ronald Oussoren wrote: I'm going to Pycon this year and I'm wondering if anyone is interested in doing a MacPython related sprint afterwards. There is about a 50% chance that I'll be going. Possible topics: * Investigate OSX-integration issues (such as the "rocket icon" that sometimes appea

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
has wrote: > Annoying, but tweaking > the Python.app bundle's LSBackgroundOnly/LSUIElement flags isn't a > solution, it's a kludge - one that will take us back to the bad old > days where some scripts automatically fail when run with 'python'. *Right now*, some scripts fail when run with "python

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Ronald Oussoren wrote: > > Most of *my* wxPython-based (actually dabo-based) tools don't even > > need to be an app bundle - doubleclicking some .py file is mostly > > enough. But I wouldn't like to loose some GUI functionality. > > IMHO running the script shouldn't be the default action for .py

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Ronald Oussoren wrote: > > On 2 Feb, 2009, at 21:53, Bill Janssen wrote: > >> > >> > >> In any case, it does include a info.plist, and it may include a > >> different launch stub, so setting LSUIElement = 1 may work in either > >> case. > > > > Sounds reasonable, then. Set LSUIElement=1 in the

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Ronald Oussoren wrote: > if I understand the > LSUIElement document correctly the setting you propose would make it > impossible to use "python sometkscript.py" to run a simple GUI script. Then you misunderstand either LSUIElement, or the discussion so far. What we'd like to do is to retain that

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Henning Hraban Ramm wrote: > But I wouldn't like to loose some GUI functionality. I'm sure that's true. But I think the change I'm proposing needn't cause any negative effects. I've lost the ability to log out, and would like that back! Bill ___ Pyt

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread has
Bill Janssen wrote: Chris, if you followed the thread, you'll know that what's happening is that the Python.app app is being promoted to a "full app", without any provision for behaving like a "full app". In particular, it doesn't participate in the various shutdown handshakes, and thus preve

[Pythonmac-SIG] MacPython sprint at PyCon'09?

2009-02-03 Thread Ronald Oussoren
Hi, I'm going to Pycon this year and I'm wondering if anyone is interested in doing a MacPython related sprint afterwards. Possible topics: * Investigate OSX-integration issues (such as the "rocket icon" that sometimes appears) * Get Py2app development going again * Packaging 3th-party e

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Ronald Oussoren
On 2 Feb, 2009, at 17:58, Bill Janssen wrote: I'm thinking that the right thing to do about rocket-in-the-dock should be to change the Info.plist of Python.app, to include the setting "LSUIElement: 1". Here's the doc from Apple: ``LSUIElement (String). If this key is set to '1', Launch Serv

Re: [Pythonmac-SIG] Py2app -- where is canonical repository, what version is current?

2009-02-03 Thread Ronald Oussoren
On 14 Jan, 2009, at 2:47, s s wrote: I've been trying to figure out where the _real_ current Py2app is. AFAIK this is the current home: http://svn.pythonmac.org/py2app/py2app/trunk I really need to add some things (compiling xib -> nib, for example) to build my project and I'd prefer

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Ronald Oussoren
On 3 Feb, 2009, at 9:10, Henning Hraban Ramm wrote: Most of *my* wxPython-based (actually dabo-based) tools don't even need to be an app bundle - doubleclicking some .py file is mostly enough. But I wouldn't like to loose some GUI functionality. IMHO running the script shouldn't be the d

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Ronald Oussoren
IDLE.app goes to some lengths to convince OS X that it is executing under its own app bundle even though it is running the interpreter from the framework Python.app executable (more execve trickery) so the Python.app Info.plist settings don't apply. BTW, IDLE.app is also broken in 3.x but I t

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Ronald Oussoren
On 2 Feb, 2009, at 21:53, Bill Janssen wrote: In any case, it does include a info.plist, and it may include a different launch stub, so setting LSUIElement = 1 may work in either case. Sounds reasonable, then. Set LSUIElement=1 in the Python.app Info.plist, and other apps that use python

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Ronald Oussoren
On 2 Feb, 2009, at 19:27, Bill Janssen wrote: Christopher Barker wrote: Bill Janssen wrote: It seems to me that this is what we want for the Python interpreter proper. could be. It sounds promising. Applications (like IDLE) that are indeed proper foreground apps can always call Transfor

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Henning Hraban Ramm
Am 2009-02-03 um 03:47 schrieb Bill Janssen: I'd suggest that promotion to LSUIElement (agent application) by the toolkit is probably right, but I'd suggest that you only promote to full app by actually having an app bundle that overrides the default Info.plist. Sorry for chirping in as a n