I've had some success editing the custom build command in Xcode under the Project -> Edit Active Target

Build Tool: /usr/bin/env
Arguments: python2.3 "$(SOURCE_ROOT)/setup.py" py2app --alias

This gives me python2.3 when I want to go that route.  I usually don't need it to use python2.3 now that I've got python2.4 to compile without using dynload_next... but that's a horse of a different color.

On 5/16/06, Christopher Barker <[EMAIL PROTECTED]> wrote:
Thorsten Kohnhorst wrote:
> Marcin Komorowski wrote:
>>  how do I make XCode use python 2.4?
> I am not sure if it is the best and only solution, but I used the method
> described here:
>
> http://pythonmac.org/wiki/FAQ#head-30475a182e1542629d526567e3799ce8463517e6

but that sets user-wide environment variables, such as PATH. There are
two problems with this approach:

1) you might not want ALL apps to use /usr/local/bin first

2) XCode might be pointing to /usr/bin/python, and then PATH will have
no effect.

Isn't there a way to tell XCode specifically what python you want it to
use? I don't use XCode, so I have no idea.

-Chris



--
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

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



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

Reply via email to