summaryrefslogtreecommitdiff
path: root/tools/install.py
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2014-10-29 15:43:09 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2014-10-29 16:02:01 +0100
commitcee3f51cef2ce22434faabc0b38e60c5a45b8d8d (patch)
tree9b74212479b944492f2b667e9855106314019921 /tools/install.py
parentaf32dd7b74521296e9f0c7eb5e8392181622cd5c (diff)
downloadandroid-node-v8-cee3f51cef2ce22434faabc0b38e60c5a45b8d8d.tar.gz
android-node-v8-cee3f51cef2ce22434faabc0b38e60c5a45b8d8d.tar.bz2
android-node-v8-cee3f51cef2ce22434faabc0b38e60c5a45b8d8d.zip
build: remove python 2.7 dependency
Remove the dependency on the 'sysconfig' module, it breaks the build when $(PYTHON) is python 2.6. PR-URL: https://github.com/node-forward/node/pull/39 Reviewed-By: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'tools/install.py')
-rwxr-xr-xtools/install.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/install.py b/tools/install.py
index 14342354d1..52c1109941 100755
--- a/tools/install.py
+++ b/tools/install.py
@@ -11,7 +11,6 @@ import os
import re
import shutil
import sys
-import sysconfig
# set at init time
node_prefix = '/usr/local' # PREFIX variable from Makefile
@@ -128,7 +127,7 @@ def subdir_files(path, dest, action):
action(files, subdir + '/')
def files(action):
- exeext=sysconfig.get_config_var('EXE')
+ exeext = '.exe' if sys.platform == 'win32' else ''
action(['out/Release/node' + exeext], 'bin/node' + exeext)
if 'true' == variables.get('node_use_dtrace'):