diff options
Diffstat (limited to 'test/SWIG/remove-modules.py')
-rw-r--r-- | test/SWIG/remove-modules.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SWIG/remove-modules.py b/test/SWIG/remove-modules.py index cac9677..1a48c9e 100644 --- a/test/SWIG/remove-modules.py +++ b/test/SWIG/remove-modules.py @@ -29,6 +29,7 @@ Verify that swig-generated modules are removed. The %module directive specifies the module name. """ +import os.path import sys import TestSCons @@ -62,6 +63,14 @@ if sys.platform == 'darwin': # (see top of file for further explanation) frameworks = '-framework Python' platform_sys_prefix = '/System/Library/Frameworks/Python.framework/Versions/%s/' % version + +python_include_dir = os.path.join(platform_sys_prefix, + 'include', + 'python' + version) +Python_h = os.path.join(python_include_dir, 'Python.h') + +if not os.path.exists(Python_h): + test.skip_test('Can not find %s, skipping test.\n' % Python_h) test.write("module.i", """\ |