Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-06-28 03:07:42 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-06-28 03:07:45 +0400
commitd5f13f6c0803e328cd588c3c402f50d7891292fb (patch)
treea6191b1662fd2616191bd63bdf2b8b3ea70956c5 /configure
parent9e72b7b65c2726ea192326261be45f4bcda6a86c (diff)
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-xconfigure7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure b/configure
index df18ba5e31b..460b3f11004 100755
--- a/configure
+++ b/configure
@@ -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)