[Pythonmac-SIG] py2app is building semi-standalone package only.

Christopher Barker Chris.Barker at noaa.gov
Wed Mar 22 18:29:33 CET 2006


Read,

Thanks for posting a summary, it's nice to have this in the archives.

A few notes:

Read Roberts wrote:
> To get a separate installation of Python 2.3.x under Mac OSX 10.3,

Why not just use 2.4.1 ? Is there a reason you need a 2.3 version?

> Two wrinkles to be aware of:
> 1) location of command-line 'python'
> In a plain Mac OS X 10.3 installation, the command 'python' works because
> the system environment variable "PATH" contains a reference to "/usr/bin",

This is totally standard *nix stuff.

 > puts the symbolic
> link under "/user/local/bin",

Also standard. "local" more or less means "not installed by the OS vendor"

> which is not in the default PATH environment variable.

which is too bad. /usr/local/bin is such a standard for user-installed 
stuff, I've always wondered why OS vendors don't' just put it in the 
default PATH.

> I added a symbolic "python2.3.5"  in the directory "/usr/bin,
> pointing to the python program under 'Library/Frameworks/Python.framework",
> so I can invoke this python with the command "python2.3.5".

Here's where you've deviated from the standard: As a rule, you shouldn't 
out ANYTHING in /usr/bin. that's Apple's job. As you haven't written 
over anything, it's probably not going to cause any problems, but the 
usual solution is to add /usr/local/bin to your PATH instead, but adding 
a line something like this to your

/Users/YourName/.profile  file:


export PATH="usr/local/bin/:$PATH"



That will tell your shell (if it's the default bash shell) to look in 
/usr/local/bin for executables before the other places it looks.

-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

Chris.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list