diff --git a/README.md b/README.md index 9b36f1315..0f7097d8e 100644 --- a/README.md +++ b/README.md @@ -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/ +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 Because of ABI differences, `sqlite3` must be built in a custom to be used with [node-webkit](https://github.com/rogerwang/node-webkit). diff --git a/deps/sqlite3.gyp b/deps/sqlite3.gyp index 94db314b5..cc9d5c809 100755 --- a/deps/sqlite3.gyp +++ b/deps/sqlite3.gyp @@ -55,7 +55,7 @@ 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/sqlite3.c' ], - 'action': ['python','./extract.py','./sqlite-autoconf-<@(sqlite_version).tar.gz','<(SHARED_INTERMEDIATE_DIR)'] + 'action': ['