From 5789231d1c8cf40e7ce86a945899567cec1498f0 Mon Sep 17 00:00:00 2001 From: bdbaddog Date: Sat, 20 Sep 2008 05:42:59 +0000 Subject: [PATCH] Fix broken swig tests when python being used to run tests is incompatible with system swig. Propagate to the created SConstructs the version of swig found by the test (which is used to determine whether to run or not run this test). git-svn-id: http://scons.tigris.org/svn/scons/trunk@3443 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- test/SWIG/build-dir.py | 1 + test/SWIG/live.py | 1 + test/SWIG/module-parens.py | 1 + test/SWIG/remove-modules.py | 1 + test/SWIG/subdir.py | 1 + 5 files changed, 5 insertions(+) diff --git a/test/SWIG/build-dir.py b/test/SWIG/build-dir.py index 85ad7f50..1bee0c2e 100644 --- a/test/SWIG/build-dir.py +++ b/test/SWIG/build-dir.py @@ -66,6 +66,7 @@ test.write(['SConstruct'], """\ # env = Environment(CPPPATH = [".", r'%(python_include_dir)s'], CPPDEFINES = "NDEBUG", + SWIG =r'%(swig)s', SWIGFLAGS = ["-python", "-c++"], SWIGCXXFILESUFFIX = "_wrap.cpp", LDMODULEPREFIX='_', diff --git a/test/SWIG/live.py b/test/SWIG/live.py index 893d8394..cfaf019a 100644 --- a/test/SWIG/live.py +++ b/test/SWIG/live.py @@ -84,6 +84,7 @@ foo = Environment(SWIGFLAGS='-python', LDMODULEPREFIX='%(ldmodule_prefix)s', LDMODULESUFFIX='%(_dll)s', FRAMEWORKS='%(python_frameworks)s', + SWIG=r'%(swig)s', #LIBS=%(python_library_path)s, ) diff --git a/test/SWIG/module-parens.py b/test/SWIG/module-parens.py index 3dabacf4..e30b93e6 100644 --- a/test/SWIG/module-parens.py +++ b/test/SWIG/module-parens.py @@ -50,6 +50,7 @@ if not os.path.exists(Python_h): test.write(['SConstruct'], """\ env = Environment(SWIGFLAGS = '-python -c++', CPPPATH=r"%(python_include_dir)s", + SWIG=r'%(swig)s', FRAMEWORKS='%(python_frameworks_flags)s', ) diff --git a/test/SWIG/remove-modules.py b/test/SWIG/remove-modules.py index ca681ea4..fad85778 100644 --- a/test/SWIG/remove-modules.py +++ b/test/SWIG/remove-modules.py @@ -73,6 +73,7 @@ foo = Environment(SWIGFLAGS='-python', LDMODULEPREFIX='%(ldmodule_prefix)s', LDMODULESUFFIX='%(_dll)s', FRAMEWORKS='%(python_frameworks_flags)s', + SWIG=r'%(swig)s', ) import sys diff --git a/test/SWIG/subdir.py b/test/SWIG/subdir.py index f96b706f..c3c8cf0d 100644 --- a/test/SWIG/subdir.py +++ b/test/SWIG/subdir.py @@ -71,6 +71,7 @@ env = Environment(SWIGFLAGS='-python', LDMODULEPREFIX='%(ldmodule_prefix)s', LDMODULESUFFIX='%(_dll)s', FRAMEWORKS='%(python_frameworks_flags)s', + SWIG=r'%(swig)s', ) import sys -- 2.26.2