This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Description
When I try to install node.js on OSX 10.6 (which has Python 2.6.1) I get the following build error:
rm -f /private/tmp/node-g9y1/node-v0.10.24/out/Release/libhttp_parser.a && ./gyp-mac-tool filter-libtool libtool -static -o /private/tmp/node-g9y1/node-v0.10.24/out/Release/libhttp_parser.a /private/tmp/node-g9y1/node-v0.10.24/out/Release/obj.target/http_parser/deps/http_parser/http_parser.o
File "./gyp-mac-tool", line 507
return {k: self._ExpandVariables(data[k], substitutions) for k in data}
^
SyntaxError: invalid syntax
The dict comprehension syntax was introduced in Python 2.7, which means this code path fails on Python 2.6. The line that failed above could easily be replaced with some like return dict((k, self._ExpandVariables(data[k], substitutions)) for k in data) but there would probably need to be a deeper audit of the Python code to make sure Python 2.6 is supported in all cases.