Fixed parsing Python configuration variables on Windows
str.splitlines() works on all types of newline characters
This commit is contained in:
parent
985e83f261
commit
777d10ddb8
1 changed files with 3 additions and 2 deletions
|
|
@ -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'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue