summaryrefslogtreecommitdiffstats
path: root/test/SWIG/SWIGOUTDIR-python.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2018-08-17 15:04:31 (GMT)
committerMats Wichmann <mats@linux.com>2018-08-17 15:04:31 (GMT)
commit8b47503f49fa423404cad0d95f070c1674dd8c5a (patch)
treeec22c1fa5681d7a1bc3026498ec9689807040e29 /test/SWIG/SWIGOUTDIR-python.py
parent52ecb92eb30698b67de2662a892e20be3f1fda20 (diff)
downloadSCons-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/SWIGOUTDIR-python.py')
-rw-r--r--test/SWIG/SWIGOUTDIR-python.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SWIG/SWIGOUTDIR-python.py b/test/SWIG/SWIGOUTDIR-python.py
index 53b5bdf..8d6703f 100644
--- a/test/SWIG/SWIGOUTDIR-python.py
+++ b/test/SWIG/SWIGOUTDIR-python.py
@@ -38,8 +38,8 @@ swig = test.where_is('swig')
if not swig:
test.skip_test('Can not find installed "swig", skipping test.\n')
-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)
# On Windows, build a 32-bit exe if on 32-bit python.
if sys.platform == 'win32' and sys.maxsize <= 2**32: