From 777d10ddb8cd97086e002ae73bfe7728d9e08eec Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 6 Sep 2012 19:59:54 +0000 Subject: [PATCH] Fixed parsing Python configuration variables on Windows str.splitlines() works on all types of newline characters --- interfaces/cython/SConscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interfaces/cython/SConscript b/interfaces/cython/SConscript index 725b628e0..bc2e3c6f5 100644 --- a/interfaces/cython/SConscript +++ b/interfaces/cython/SConscript @@ -31,7 +31,7 @@ if localenv['python3_package'] == 'y': "print(get_python_version())", "print(numpy.get_include())"))) - module_ext, py3_version, numpy_include = info.split('\n') + module_ext, py3_version, numpy_include = info.splitlines() incDirs = (".", "../../include", numpy_include, localenv['sundials_include'], localenv['boost_inc_dir']) @@ -97,7 +97,8 @@ if localenv['python_package'] == 'new': "print get_python_version()", "print numpy.get_include()"))) - module_ext, py2_version, numpy_include = info.split('\n') + + module_ext, py2_version, numpy_include = info.splitlines() incDirs = (".", "../../include", numpy_include, localenv['sundials_include'], localenv['boost_inc_dir'])