I cloned the node git repo but the "waf" build tool that comes with node seems to not work with the latest version of Python.
$ ./configure
Traceback (most recent call last):
File "/Users/greim/nodestuff/node/tools/waf-light", line 157, in <module>
import Scripting
File "/Users/greim/nodestuff/node/tools/wafadmin/Scripting.py", line 146
except Utils.WafError, e:
^
SyntaxError: invalid syntax
$ which python
/Library/Frameworks/Python.framework/Versions/3.0/bin/python
If I understand, that comma is an outdated syntax that doesn't work on Python 3, right?
I'd rather not install an old version of Python just to do this. Ideally I'd like to be able to build and install the latest version, rather than depend on others to distribute .dmg files.
Rock and hard place? Recommendations?
[update] OK, so thanks to all who helped answer this question. Hopefully others will find this on Google. As it turns out I do have Python 2.x on my system (it comes installed by default on OS X) under /usr/bin. So the solution was to update my path (not permanently, just for this one bash session).
$ export PATH=/usr/bin:$PATH
$ ./configure
$ make
$ make install
Tada! Node is installed on my system.