Fix python artifact build

pull/11048/head
Ken Payson 8 years ago
parent c2ad372d43
commit b91c5fb8ba
  1. 2
      setup.py
  2. 4
      src/python/grpcio/commands.py

@ -116,7 +116,7 @@ if EXTRA_ENV_COMPILE_ARGS is None:
elif 'win32' in sys.platform: elif 'win32' in sys.platform:
EXTRA_ENV_COMPILE_ARGS += ' -D_PYTHON_MSVC' EXTRA_ENV_COMPILE_ARGS += ' -D_PYTHON_MSVC'
elif "linux" in sys.platform: elif "linux" in sys.platform:
EXTRA_ENV_COMPILE_ARGS += ' -std=c++11 -fvisibility=hidden -fno-wrapv' EXTRA_ENV_COMPILE_ARGS += ' -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv'
elif "darwin" in sys.platform: elif "darwin" in sys.platform:
EXTRA_ENV_COMPILE_ARGS += ' -fvisibility=hidden -fno-wrapv' EXTRA_ENV_COMPILE_ARGS += ' -fvisibility=hidden -fno-wrapv'

@ -284,9 +284,9 @@ class BuildExt(build_ext.build_ext):
stderr=subprocess.PIPE) stderr=subprocess.PIPE)
make_out, make_err = make_process.communicate() make_out, make_err = make_process.communicate()
if make_out and make_process.returncode != 0: if make_out and make_process.returncode != 0:
sys.stdout.write(make_out + '\n') sys.stdout.write(str(make_out) + '\n')
if make_err: if make_err:
sys.stderr.write(make_err + '\n') sys.stderr.write(str(make_err) + '\n')
if make_process.returncode != 0: if make_process.returncode != 0:
raise Exception("make command failed!") raise Exception("make command failed!")

Loading…
Cancel
Save