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
74
+
2.If `node-gyp` is called by way of `npm`, *and* you have multiple versions of
78
75
Python installed, then you can set `npm`'s 'python' config key to the appropriate
79
76
value:
80
77
81
78
```bash
82
79
$ npm config set python /path/to/executable/python
83
80
```
84
81
85
-
If the `PYTHON` environment variable is set to the path of a Python executable,
86
-
it will be used if it is a compatible Python.
82
+
3.If the `PYTHON` environment variable is set to the path of a Python executable,
83
+
then that version will be used, if it is a compatible version.
87
84
88
-
If the `NODE_GYP_FORCE_PYTHON` environment variable is set to the path of a
85
+
4.If the `NODE_GYP_FORCE_PYTHON` environment variable is set to the path of a
89
86
Python executable, it will be used instead of any of the other configured or
90
-
builtin Python search paths. If its not a compatible Python, no further
87
+
builtin Python search paths. If it's not a compatible version, no further
91
88
searching will be done.
92
89
93
90
## How to Use
@@ -147,15 +144,16 @@ A barebones `gyp` file appropriate for building a Node.js addon could look like:
147
144
}
148
145
```
149
146
150
-
Some additional resources for addons and writing `gyp` files:
147
+
## Further reading
148
+
149
+
Some additional resources for Node.js native addons and writing `gyp` configuration files:
151
150
152
151
*["Going Native" a nodeschool.io tutorial](http://nodeschool.io/#goingnative)
*[gyp user documentation](https://gyp.gsrc.io/docs/UserDocumentation.md)
155
154
*[gyp input format reference](https://gyp.gsrc.io/docs/InputFormatReference.md)
156
155
*[*"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