diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-06-28 03:07:42 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-06-28 03:07:45 +0400 |
commit | d5f13f6c0803e328cd588c3c402f50d7891292fb (patch) | |
tree | a6191b1662fd2616191bd63bdf2b8b3ea70956c5 /configure | |
parent | 9e72b7b65c2726ea192326261be45f4bcda6a86c (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-x | configure | 7 |
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) |