Commit dea2f3b7 by Bryce Gibson

Allow specifying the python to use.

parent d07c8ab8
...@@ -90,6 +90,15 @@ Note, if building against homebrew-installed sqlite on OS X you can do: ...@@ -90,6 +90,15 @@ Note, if building against homebrew-installed sqlite on OS X you can do:
npm install --build-from-source --sqlite=/usr/local/opt/sqlite/ npm install --build-from-source --sqlite=/usr/local/opt/sqlite/
By default the node-gyp install will use `python` as part of the installation. A
different python executable can be specified on the command line.
npm install --build-from-source --python=/usr/bin/python2
This uses the npm_config_python config, so values in .npmrc will be honoured:
python=/usr/bin/python2
## Building for node-webkit ## Building for node-webkit
Because of ABI differences, `sqlite3` must be built in a custom to be used with [node-webkit](https://github.com/rogerwang/node-webkit). Because of ABI differences, `sqlite3` must be built in a custom to be used with [node-webkit](https://github.com/rogerwang/node-webkit).
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
'outputs': [ 'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/sqlite3.c' '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/sqlite3.c'
], ],
'action': ['python','./extract.py','./sqlite-autoconf-<@(sqlite_version).tar.gz','<(SHARED_INTERMEDIATE_DIR)'] 'action': ['<!(node -p "process.env.npm_config_python || \\"python\\"")','./extract.py','./sqlite-autoconf-<@(sqlite_version).tar.gz','<(SHARED_INTERMEDIATE_DIR)']
} }
], ],
'direct_dependent_settings': { 'direct_dependent_settings': {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment