From cde938fda907831af375c5aa3803671162ca0c5d Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 28 Sep 2012 20:37:37 -0400 Subject: [PATCH] python3 integration bugfix --- build/config-linux-gcc-debug.py | 2 +- build/config-linux-gcc.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build/config-linux-gcc-debug.py b/build/config-linux-gcc-debug.py index 9c93d567..55f32973 100644 --- a/build/config-linux-gcc-debug.py +++ b/build/config-linux-gcc-debug.py @@ -31,7 +31,7 @@ pyver = os.popen("python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'") env = locals() env['PYTHON'+pyver+'INCLUDE'] = [] -env['PYTHON'+pyver+'LIB'] = ['boost_python'] +env['PYTHON'+pyver+'LIB'] = ['boost_python3' if pyver[0] == '3' else 'boost_python'] for entry in os.popen("python-config --cflags --libs").read().split(): if entry[:2] == '-I': diff --git a/build/config-linux-gcc.py b/build/config-linux-gcc.py index 2f8ce2fe..7872e6fd 100644 --- a/build/config-linux-gcc.py +++ b/build/config-linux-gcc.py @@ -31,7 +31,9 @@ pyver = os.popen("python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'") env = locals() env['PYTHON'+pyver+'INCLUDE'] = [] -env['PYTHON'+pyver+'LIB'] = ['boost_python'] +env['PYTHON'+pyver+'LIB'] = ['boost_python3' if pyver[0] == '3' else 'boost_python'] + +print(env['PYTHON'+pyver+'LIB']) for entry in os.popen("python-config --cflags --libs").read().split(): if entry[:2] == '-I':