genhao1 / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

Python 2.6 + OSX problem #402

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
  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

We have worked it around in node by applying this: 
https://github.com/indutny/node/commit/5c71bccc8cf101a6cb3d3a808dbddf72484eb64c

Original issue reported on code.google.com by fedor.in...@gmail.com on 13 Jan 2014 at 5:06

GoogleCodeExporter commented 9 years ago
Ran into this as well. Dict literals are only supported in Python >= 2.7, if 
2.6 is still a supported platform Fedor's patch solves it nicely.

Original comment by saghul on 22 May 2014 at 7:13