Skip to content
Browse files

README: added note about --python config setting

Squashed commit of the following:

commit 4b0d218
Author: Kevin Ford <kefo@3windmills.com>
Date:   Tue Mar 4 18:20:20 2014 -0500

    Added instructions for selecting specific python version with node-gyp *and* npm.

commit 0995da3
Author: Kevin Ford <kefo@3windmills.com>
Date:   Tue Mar 4 16:05:32 2014 -0500

    Added note about setting npm's Python config key to appropriate Python version.

commit 0d74a8e
Author: Kevin Ford <kefo@3windmills.com>
Date:   Tue Mar 4 16:01:31 2014 -0500

    Added note about setting npm's Python config key to appropriate Python version.

commit 8c56de3
Author: Kevin Ford <kefo@3windmills.com>
Date:   Tue Mar 4 15:56:20 2014 -0500

    Added note about setting npm's Python config key to appropriate Python version.

commit 5fb6978
Author: Kevin Ford <kefo@3windmills.com>
Date:   Tue Mar 4 15:55:19 2014 -0500

    Added note about setting npm's Python config key to appropriate Python version.

Closes #413.
  • Loading branch information...
1 parent fe48089 commit 7cbf31cdca60c295157fee7b7edf1bf84c1ab0c5 @TooTallNate TooTallNate committed
Showing with 15 additions and 0 deletions.
  1. +15 −0 README.md
View
15 README.md
@@ -45,6 +45,21 @@ You will also need to install:
* Windows 7/8:
* Microsoft Visual Studio C++ 2012 for Windows Desktop ([Express][msvc2012] version works well)
+If you have multiple Python versions installed, you can identify which Python
+version `node-gyp` uses by setting the '--python' variable:
+
+``` bash
+$ node-gyp --python /path/to/python2.7
+```
+
+If `node-gyp` is called by way of `npm` *and* you have multiple versions of
+Python installed, then you can set `npm`'s 'python' config key to the appropriate
+value:
+
+``` bash
+$ npm config set python /path/to/executable/python2.7
+```
+
Note that OS X is just a flavour of Unix and so needs `python`, `make`, and C/C++.
An easy way to obtain these is to install XCode from Apple,
and then use it to install the command line tools (under Preferences -> Downloads).

0 comments on commit 7cbf31c

Please sign in to comment.
Something went wrong with that request. Please try again.