How do I get Emacs to start the latest version of Python?

I'm using "GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.2.0) of 2005-08-06 on quartet.local" (as reported by M-x emacs-verion) on a PowerPC G5 running Mac OS X version 10.4.11 (yes I know I'm not running 10.5)

The default Python version that came installed with 10.4 is Python 2.3.5 (#1, Jan 12 2009, 14:43:55), and I'd like to run Python 3.0. How can I convince Emacs to run 3.0 instead of the default 2.3? I've tried setting PYTHONPATH in my .cshrc, .login, and .emacs. My .cshrc adds /Library/Frameworks/Python.framework/Versions/3.0/bin to the PATH, but (getenv "PATH") in emacs returns "/usr/bin:/bin:/usr/sbin:/ sbin:/usr/local/bin:/usr/X11R6/bin"

I can get it to start python 3.0 if, in python.el, I set python- python-command to "/Library/Frameworks/Python.framework/Versions/3.0/ bin/python". But this seems like a kludge, to have to set the full path. There must be a better way.

After I did get python 3.0 to start, then I had to fix a bunch of stuff in emacs.py, mostly parens for print commands and converting tabs in the indentation to 8 spaces.

Gregg Lobdell
gmlobd...@seanet.com



_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to