You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If `node-gyp` is called by way of `npm`, *and* you have multiple versions of
73
+
2.If `node-gyp` is called by way of `npm`, *and* you have multiple versions of
77
74
Python installed, then you can set `npm`'s 'python' config key to the appropriate
78
75
value:
79
76
80
77
```bash
81
78
$ npm config set python /path/to/executable/python
82
79
```
83
80
84
-
If the `PYTHON` environment variable is set to the path of a Python executable,
85
-
it will be used if it is a compatible Python.
81
+
3.If the `PYTHON` environment variable is set to the path of a Python executable,
82
+
then that version will be used, if it is a compatible version.
86
83
87
-
If the `NODE_GYP_FORCE_PYTHON` environment variable is set to the path of a
84
+
4.If the `NODE_GYP_FORCE_PYTHON` environment variable is set to the path of a
88
85
Python executable, it will be used instead of any of the other configured or
89
-
builtin Python search paths. If its not a compatible Python, no further
86
+
builtin Python search paths. If it's not a compatible version, no further
90
87
searching will be done.
91
88
92
89
## How to Use
@@ -146,15 +143,16 @@ A barebones `gyp` file appropriate for building a Node.js addon could look like:
146
143
}
147
144
```
148
145
149
-
Some additional resources for addons and writing `gyp` files:
146
+
## Further reading
147
+
148
+
Some additional resources for Node.js native addons and writing `gyp` configuration files:
150
149
151
150
*["Going Native" a nodeschool.io tutorial](http://nodeschool.io/#goingnative)
*[gyp user documentation](https://gyp.gsrc.io/docs/UserDocumentation.md)
154
153
*[gyp input format reference](https://gyp.gsrc.io/docs/InputFormatReference.md)
155
154
*[*"binding.gyp" files out in the wild* wiki page](https://github.com/nodejs/node-gyp/wiki/%22binding.gyp%22-files-out-in-the-wild)
0 commit comments