diff options
author | Mats Wichmann <mats@linux.com> | 2018-08-17 15:04:31 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2018-08-17 15:04:31 (GMT) |
commit | 8b47503f49fa423404cad0d95f070c1674dd8c5a (patch) | |
tree | ec22c1fa5681d7a1bc3026498ec9689807040e29 /test/SWIG/recursive-includes-cpp.py | |
parent | 52ecb92eb30698b67de2662a892e20be3f1fda20 (diff) | |
download | SCons-8b47503f49fa423404cad0d95f070c1674dd8c5a.zip SCons-8b47503f49fa423404cad0d95f070c1674dd8c5a.tar.gz SCons-8b47503f49fa423404cad0d95f070c1674dd8c5a.tar.bz2 |
get_platform_python_info fail on missing Python.h
evolved the get_platform_python_info test method to fail only
if a new flag python_h_required is True. Rolled back the
previous change to have the method return the path to the
Python.h, this was not really needed since the include
path is already returned.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/SWIG/recursive-includes-cpp.py')
-rw-r--r-- | test/SWIG/recursive-includes-cpp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SWIG/recursive-includes-cpp.py b/test/SWIG/recursive-includes-cpp.py index 4cb8fe5..3999cc3 100644 --- a/test/SWIG/recursive-includes-cpp.py +++ b/test/SWIG/recursive-includes-cpp.py @@ -44,8 +44,8 @@ for pre_req in ['swig', 'python']: if not test.where_is(pre_req): test.skip_test('Can not find installed "' + pre_req + '", skipping test.%s' % os.linesep) -python, python_include, python_libpath, python_lib, python_h = \ - test.get_platform_python_info() +python, python_include, python_libpath, python_lib = \ + test.get_platform_python_info(python_h_required=True) if sys.platform == 'win32': python_lib = os.path.dirname(sys.executable) + "/libs/" + ('python%d%d'%(sys.version_info[0],sys.version_info[1])) + '.lib' |