diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-06-28 01:07:42 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-06-28 01:07:45 +0200 |
commit | d5f13f6c0803e328cd588c3c402f50d7891292fb (patch) | |
tree | a6191b1662fd2616191bd63bdf2b8b3ea70956c5 /configure | |
parent | 9e72b7b65c2726ea192326261be45f4bcda6a86c (diff) | |
download | node-new-d5f13f6c0803e328cd588c3c402f50d7891292fb.tar.gz |
build: use proper python interpreter
Make configure start gyp with the same python interpreter that is used to
run configure itself.
Fixes an issue where configure fails with a SyntaxError because the user
has multiple python binaries on his $PATH and the default one is too old.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -400,7 +400,8 @@ write('config.mk', "# Do not edit. Generated by the configure script.\n" + ("BUILDTYPE=%s\n" % ('Debug' if options.debug else 'Release'))) if os.name == 'nt': - subprocess.call(['python', 'tools/gyp_node', '-f', 'msvs', - '-G', 'msvs_version=2010']) + gyp_args = ['-f', 'msvs', '-G', 'msvs_version=2010'] else: - subprocess.call(['tools/gyp_node', '-f', 'make']) + gyp_args = ['-f', 'make'] + +subprocess.call([sys.executable, 'tools/gyp_node'] + gyp_args) |