tags:

views:

721

answers:

4

Hi,

Can you please tell me how can I install scons on MacOSX?

I don't see a mac specified download from http://www.scons.org/

Thank you.

+2  A: 

Install MacPorts, then at the Terminal (Applications > Utilities > Terminal.app), type:

sudo port install scons

This command will automatically download and install scons for you. MacPorts requires that you have the developer tools installed, so if you don't, you will need to download and install the Xcode 3 DVD.

NOTE 1: Xcode 2.5 is the last version of Xcode that will work on Mac OS X Tiger.

NOTE 2: This may seem awfully painful if you don't already have MacPorts installed. However, you really should go this route, as MacPorts makes it easy to update installed software, it automatically manages dependencies between software, and it makes it easier to install other packages in the future.

Michael Aaron Safyan
MacPorts is great, and I use it regularly. However, I try my hardest to steer clear of distribution-based package management when it comes to Python modules. I try to stick with virtualenv for isolating Python instances and pip for package management.
ken
+4  A: 

Download the tarball and then refer to the first chapter of the user guide, Building and Installing SCons. In short:

# cd scons-1.2.0
# python setup.py install
Rob Kennedy
I needed to sudo it, but besides that, this worked a charm, and no macports required :)
Sophistifunk
+1  A: 

If you have the Python setuptools, the following will install scons-1.2.0 from sourceforge:

easy_install scons

But bear in mind the issues people raise with setuptools.

Also, keep in mind this question and the answers about virtualenv and pip for isolating Python environments.

ken