Re: [Pythonmac-SIG] Why is Framework build of Python needed

2009-05-13 Thread Brian Granger
> Pretty much -- to access the Mac GUI, an app needs to be in a proper Mac > application bundle. The Framework build supplies that. Technically, the use > of a framework is independent for this requirement, but using a Framework > build is the easiest way to satisfy it. OK. > Do you have a reason

[Pythonmac-SIG] Why is Framework build of Python needed

2009-05-13 Thread Brian Granger
Hi, I seem to recall that a Framework build of Python is needed if you want to do anything with the native Mac GUI. Is my understanding correct? If so, is this requirement documented somewhere? Thanks! Brian ___ Pythonmac-SIG maillist - Pythonmac-S

Re: [Pythonmac-SIG] sys.path on Leopard

2007-11-02 Thread Brian Granger
I think this is currently the best approach because PYTHONPATH gets lost in sudo commands in Leopard. On 11/1/07, Jack Jansen <[EMAIL PROTECTED]> wrote: > > On 1-Nov-2007, at 20:45 , Brian Granger wrote: > > Running python setup.py install on Leopard causes packages to be &g

Re: [Pythonmac-SIG] Round 2 with Leopard+Python

2007-11-02 Thread Brian Granger
gt; > Defaultsenv_keep += "PYTHONPATH" > > > > > > > > But that would involve editing a file in /etc as root. > > Straightforward enough, but likely to get overwritten and what if > > the user screws this up? > > > > >

Re: [Pythonmac-SIG] sys.path on Leopard

2007-11-02 Thread Brian Granger
sen: > > > > > On 1-Nov-2007, at 20:45 , Brian Granger wrote: > >> Running python setup.py install on Leopard causes packages to be > >> installed in the usual: > >> > >> /Library/Python/2.5/site-packages > >> > >> But, Apple put

[Pythonmac-SIG] Round 2 with Leopard+Python

2007-11-02 Thread Brian Granger
Hi, In the process of working through the issues with sys.path on Leopard, I have found another potential Leopard bug that is particularly nasty. In Tiger, sudo preserves environment variables: $ export FOO=/tmp $ python -c "import os; print os.environ['FOO']" /tmp $ sudo python -c "import os; p

Re: [Pythonmac-SIG] Problem with numpy on Leopard

2007-11-02 Thread Brian Granger
This is definitely worth looking at for this type of thing. Thanks for the pointer. Brian On 11/2/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > Christopher Barker wrote: > > I suppose this may be a time to take a good look at workingenv again... > > Or virtualenv which has replaced workingenv: >

Re: [Pythonmac-SIG] [Numpy-discussion] Problem with numpy on Leopard

2007-11-02 Thread Brian Granger
On 11/1/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > > It's not entirely silly. This has been the advice given to app > > > developers on this list and the PyObjC list for years now. It's nice > > > to have a better system Python for quick scripts, but it's still the > > > System Python. It's

Re: [Pythonmac-SIG] [Numpy-discussion] Problem with numpy on Leopard

2007-11-01 Thread Brian Granger
> It's not entirely silly. This has been the advice given to app > developers on this list and the PyObjC list for years now. It's nice > to have a better system Python for quick scripts, but it's still the > System Python. It's Apples, for their stuff that uses Python. And it > is specific to

[Pythonmac-SIG] sys.path on Leopard

2007-11-01 Thread Brian Granger
Hi, I have been playing around with python on Leopard today. Overall, I am very pleased, but I just ran into a problem that will affect a large number of users. In Leopard, Apple includes a number of python packages in: ls /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/pyth

Re: [Pythonmac-SIG] [IPython-dev] readline support for OS X Leopard

2007-10-30 Thread Brian Granger
I am afraid that this patch won't cut it. It does a simple test of the os type. The problem is that someone could install a version of python on OS X and want to use the other readline library (for example the OS X python binaries from the python.org website ship with this readline). Somehow, we

Re: [Pythonmac-SIG] readline support for OS X Leopard

2007-10-26 Thread Brian Granger
The rlineimpl.py module is the place in python where readline gets imported. I would look there and also I would look to see where ipython is doing its equivalent of parse_and_bind. Brian On 10/26/07, Noah Gift <[EMAIL PROTECTED]> wrote: > Ed, > > You are a genius! Thanks, I totally forgot you t

Re: [Pythonmac-SIG] readline support for OS X Leopard

2007-10-22 Thread Brian Granger
I am forwarding this to the ipython-dev list. A number of the core ipython dev's use OS X, so we will surely jump on this one as soon as we get our hands on Leopard. This (libedit support) is great news as it has been one of the main problems with the built-in Python on OS X for a long time. Che

[Pythonmac-SIG] Multiple python 2.5 framworks

2007-02-07 Thread Brian Granger
Hi, We need to deploy a qt4 based python app and I am working on some of the build issues. Because we are using Qt, we need a framework build of Python (we are using 2.5). One of our requirements is that users can build and use the app without doing a system wide install. I am worried that our

Re: [Pythonmac-SIG] Problems with universal Python 2.4.3's distutils

2006-11-04 Thread Brian Granger
Sorry I didn't see this one earlier. Using the --mpi option to build mpi4py is not the recommended way of building it. The docs are a little out of date on this one. The following should work: python setup.py build --mpicc=path_to_your_mpicc_executable Let me know if that works! I build mpi4p

Re: [Pythonmac-SIG] python threading and multiple processors

2006-11-02 Thread Brian Granger
> If you want to make full use of multiple processors using pure python > code you'll have to use multiple processes. This is absolutely true, but in practice it is a little more complicated. If you can factor your algorithm so that each process can be run completely separately, with no interproc

[Pythonmac-SIG] ANN: PyXG 0.2.0

2005-12-23 Thread Brian Granger
et me know. Brian Granger [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework

2005-08-11 Thread Brian Granger
What version of gcc are you using? I have not had any luck getting scipy and its dependencies working with gcc 4.0. Maybe this has changed? Has anyone had success with gcc 4.0 yet? If you need to change the default version of gcc on Mac OS X use the command: sudo gcc_select 3.3 Brian On

[Pythonmac-SIG] ANN: PyXG = Python + Xgrid

2005-05-03 Thread Brian Granger
at: http://hammonds.scu.edu/~classes/pyxg.html Apple's description of Xgrid is at: http://www.apple.com/server/macosx/features/xgrid.html Brian Granger Brian E. Granger Assistant Professor of Physics Santa Clara University [EMAIL PROTECTED] Phone: 408-551-1891 Fa