Skip to content

Commit

Permalink
Merge pull request #1089 from bruce-one/python-path
Browse files Browse the repository at this point in the history
Allow specifying the python to use.
  • Loading branch information
kewde committed Dec 4, 2018
2 parents d07c8ab + dea2f3b commit 58e197f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion deps/sqlite3.gyp
Expand Up @@ -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': ['<!(node -p "process.env.npm_config_python || \\"python\\"")','./extract.py','./sqlite-autoconf-<@(sqlite_version).tar.gz','<(SHARED_INTERMEDIATE_DIR)']
}
],
'direct_dependent_settings': {
Expand Down

0 comments on commit 58e197f

Please sign in to comment.