Scons OsX Install Question

DesertPenguin
Unregistered
 
Post: #1
I finally got around to trying sCons as my build tool.

I downloaded the source tarball and ran:
python setup.py install

It looks like this sets up scons in
/System/Library/Frameworks/Python.framework/Versions/2.3/
by default.

Of course this is not in my path.

So my simple question is what is the best approach to adding a path, should I:
1) Just add /System/Library/Frameworks/Python.framework/Versions/2.3/bin to my path.
or
2) Re-Install scons into a more appropriate bin dir with
python setup.py install --prefix=/usr/local (and add to path)
or
3) Add a symlink from /usr/bin/scons to /System/Library/Frameworks/Python.framework/Versions/2.3/bin (why didn't the install do this)

Thanks for any advice...
Quote this message in a reply
Member
Posts: 469
Joined: 2002.10
Post: #2
I'd recommend just installing in /usr e.g.:
sudo python setup.py install \--prefix=/usr

This should be enough to put it on your path.
If it's still not, then you should edit ~/.profile and add /usr/bin to your PATH.
This is probably the most standard config.

---Kelvin--
15.4" MacBook Pro revA
1.83GHz/2GB/250GB
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
I tend not to install it at all, just untar it somewhere, and stick a symbolic link to it somewhere, and set PYTHONPATH up so it works. The install thing never seems to work on Mac OS X.
Quote this message in a reply
Apprentice
Posts: 13
Joined: 2006.10
Post: #4
To my for Python 2.5 simple "sudo python setup.py install" worked like a charm. After reopening terminal window scons script was in the path and was working correctly.
Quote this message in a reply
swiftcoder
Unregistered
 
Post: #5
MacPorts (previously DarwinPorts) has a scons package, installs with no problem. Of course, it also upgrades your python as a side effect, but no big deal.
Quote this message in a reply
Member
Posts: 567
Joined: 2004.07
Post: #6
It installed fine for me in /usr/local/bin... you just have to set the prefix correctly.

It's not magic, it's Ruby.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to install TAO ? saladeverte 5 3,287 May 26, 2008 04:44 AM
Last Post: saladeverte
  Cross-Platform IDE compatible w/ Scons wyrmmage 6 5,880 Mar 30, 2008 06:47 PM
Last Post: OneSadCookie