Skip to content
Snippets Groups Projects
Commit 449bf017 authored by kpayson64's avatar kpayson64 Committed by GitHub
Browse files

Merge pull request #11048 from kpayson64/fix_py_artifact

Fix python artifact build
parents 0cab13f5 b91c5fb8
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ if EXTRA_ENV_COMPILE_ARGS is None: ...@@ -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): ...@@ -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!")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment