Re: [Distutils] virtualenv, OS X, and GUIs

Robert Kern wrote:
Is there an appropriate mailing list for talking about virtualenv? I've run into a problem where virtualenvs on OS X cannot access the screen to run GUIs. I've found a solution that appears to work and am going to write a patch to let virtualenv do it. I'd like to get some feedback from other OS X virtualenv users, though.
I've thought maybe the distutils list is the best place for discussion; at least for the moment (better than private email, where no one else will see it). If activity increases much perhaps a separate mailing list will make sense (not everyone who would want to discuss virtualenv will want to be on the distutils list).
I think Ronald Oussoren is on that list, but just in case I'll copy him since he's done the Mac specific stuff in virtualenv so far.

I think a list just for virtualenv makes a lot of sense. I also think we need a wiki for virtualenv recipes. I also think Ian needs a PR firm just to follow him around all day a to promote his code:)
Our local user group is going to have a small talk/ screencast on virtualenv so it would be nice to have a link to it
On Jan 8, 2008, at 7:47 PM, Ian Bicking ianb@colorstudy.com wrote:
Robert Kern wrote:
Is there an appropriate mailing list for talking about virtualenv? I've run into a problem where virtualenvs on OS X cannot access the screen to run GUIs. I've found a solution that appears to work and am going to write a patch to let virtualenv do it. I'd like to get some feedback from other OS X virtualenv users, though.
I've thought maybe the distutils list is the best place for discussion; at least for the moment (better than private email, where no one else will see it). If activity increases much perhaps a separate mailing list will make sense (not everyone who would want to discuss virtualenv will want to be on the distutils list).
I think Ronald Oussoren is on that list, but just in case I'll copy him since he's done the Mac specific stuff in virtualenv so far.
-- Ian Bicking : ianb@colorstudy.com : http://blog.ianbicking.org _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig

On 9 Jan, 2008, at 1:47, Ian Bicking wrote:
Robert Kern wrote:
Is there an appropriate mailing list for talking about virtualenv? I've run into a problem where virtualenvs on OS X cannot access the screen to run GUIs. I've found a solution that appears to work and am going to write a patch to let virtualenv do it. I'd like to get some feedback from other OS X virtualenv users, though.
What's the solution?
It is currently not possible to use GUI api's from the commandline using a virtualenv interpreter, but that's just basic OSX lameness. It works in the system install because that uses some trickery to let the system think that the interpreter is inside an application bundle (at the cost of an extra fork(2)).
I've thought maybe the distutils list is the best place for discussion; at least for the moment (better than private email, where no one else will see it). If activity increases much perhaps a separate mailing list will make sense (not everyone who would want to discuss virtualenv will want to be on the distutils list).
I think Ronald Oussoren is on that list, but just in case I'll copy him since he's done the Mac specific stuff in virtualenv so far.
I'm on the distutils list, but don't read that daily. I don't think the virtualenv list is the right place for discussion of virtualenv though.
Ronald
-- Ian Bicking : ianb@colorstudy.com : http://blog.ianbicking.org

Ronald Oussoren wrote:
On 9 Jan, 2008, at 1:47, Ian Bicking wrote:
Robert Kern wrote:
Is there an appropriate mailing list for talking about virtualenv? I've run into a problem where virtualenvs on OS X cannot access the screen to run GUIs. I've found a solution that appears to work and am going to write a patch to let virtualenv do it. I'd like to get some feedback from other OS X virtualenv users, though.
What's the solution?
It is currently not possible to use GUI api's from the commandline using a virtualenv interpreter, but that's just basic OSX lameness. It works in the system install because that uses some trickery to let the system think that the interpreter is inside an application bundle (at the cost of an extra fork(2)).
Basically, I replicated this procedure for the ~/virtualenv/. I copied the Python.app/ into the ~/virtualenv/, used the install_name_tool to point it ~/virtualenv/.Python, and then compiled pythonw.c with a -D flag to point it to the executable in the copied Python.app. It's not particularly pretty, but it worked for me with python.org's Python 2.5 on Leopard.
That's good enough for me, but I'm wondering how robust that is going to be for others. Which framework builds do not have a Python.app? I notice that Leopard's 2.3 doesn't, so I'm guessing that Tiger's didn't either. Were there releases of 2.4 that didn't?
Should I bother trying to support Python 2.3? It doesn't look like virtualenv tries to.
participants (4)
-
Ian Bicking
-
Noah
-
Robert Kern
-
Ronald Oussoren