Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Commit

Permalink
build: remove python 2.7 dependency
Browse files Browse the repository at this point in the history
Remove the dependency on the 'sysconfig' module, it breaks the build
when $(PYTHON) is python 2.6.

PR-URL: node-forward/node#39
Reviewed-By: Fedor Indutny <fedor@indutny.com>
  • Loading branch information
bnoordhuis committed Oct 29, 2014
1 parent af32dd7 commit cee3f51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ SIGN ?=
PREFIX ?= /usr/local

# Determine EXEEXT
EXEEXT=$(shell $(PYTHON) -c "import sysconfig; print(sysconfig.get_config_var('EXE'))")
EXEEXT := $(shell $(PYTHON) -c \
"import sys; print('.exe' if sys.platform == 'win32' else '')")

NODE ?= ./node$(EXEEXT)
NODE_EXE = node$(EXEEXT)
Expand Down
3 changes: 1 addition & 2 deletions tools/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import re
import shutil
import sys
import sysconfig

# set at init time
node_prefix = '/usr/local' # PREFIX variable from Makefile
Expand Down Expand Up @@ -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'):
Expand Down

0 comments on commit cee3f51

Please sign in to comment.