From 764801ecaf19fd73e75a90ba26452dd7c86a5138 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Tue, 18 Apr 2017 10:26:34 -0700 Subject: fix test for osx (with macports only at this point) --- test/SWIG/recursive-includes-cpp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/SWIG/recursive-includes-cpp.py b/test/SWIG/recursive-includes-cpp.py index 364bd73..dbcac6d 100644 --- a/test/SWIG/recursive-includes-cpp.py +++ b/test/SWIG/recursive-includes-cpp.py @@ -64,6 +64,7 @@ test.write("mod.i", """\ test.write('SConstruct', """\ import distutils.sysconfig +import sys DefaultEnvironment( tools = [ 'swig' ] ) @@ -77,6 +78,9 @@ env = Environment( SHLIBPREFIX = "" ) +if sys.platform == 'darwin': + env['LIBS']=['python%d.%d'%(sys.version_info[0],sys.version_info[1])] + env.SharedLibrary( 'mod.so', [ -- cgit v0.12