提交 3d09304a authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Prefer Python 2 if possible (and path gyp to fix an issue with Python 3)

上级 b3f605e6
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# make tasks for mediasoup-worker. # make tasks for mediasoup-worker.
# #
PYTHON ?= python # Best effort to prefer Python 2 executable since there are yet pending issues
# with gyp and Python3.
PYTHON ?= $(shell command -v python2 2> /dev/null || echo python)
LCOV = ./deps/lcov/bin/lcov LCOV = ./deps/lcov/bin/lcov
GULP = ../node_modules/.bin/gulp GULP = ../node_modules/.bin/gulp
BEAR ?= bear BEAR ?= bear
......
...@@ -270,8 +270,9 @@ class MacTool(object): ...@@ -270,8 +270,9 @@ class MacTool(object):
libtoolout = subprocess.Popen(cmd_list, stderr=subprocess.PIPE, env=env) libtoolout = subprocess.Popen(cmd_list, stderr=subprocess.PIPE, env=env)
_, err = libtoolout.communicate() _, err = libtoolout.communicate()
for line in err.splitlines(): for line in err.splitlines():
if not libtool_re.match(line) and not libtool_re5.match(line): line_decoded = line.decode("utf-8")
print(line, file=sys.stderr) if not libtool_re.match(line_decoded) and not libtool_re5.match(line_decoded):
print(line_decoded, file=sys.stderr)
# Unconditionally touch the output .a file on the command line if present # Unconditionally touch the output .a file on the command line if present
# and the command succeeded. A bit hacky. # and the command succeeded. A bit hacky.
if not libtoolout.returncode: if not libtoolout.returncode:
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论