From 7dea158d5fb6466702d4da33be365629eca1305d Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 16 Aug 2011 00:31:55 -0400 Subject: [PATCH] OSX build fix --- src/libpython/SConscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libpython/SConscript b/src/libpython/SConscript index aaed91c2..dd741976 100644 --- a/src/libpython/SConscript +++ b/src/libpython/SConscript @@ -3,7 +3,10 @@ Import('env', 'sys', 'os', 'hasPython') pythonEnv = env.Clone() pythonEnv.Append(CPPDEFINES = [['MTS_BUILD_MODULE', 'MTS_MODULE_PYTHON']]) pythonEnv['SHLIBPREFIX']='' -pythonEnv['CXXFLAGS'].remove('-g') +try: + pythonEnv['CXXFLAGS'].remove('-g') +except: + pass if pythonEnv.has_key('PYTHONINCLUDE'): pythonEnv.Prepend(CPPPATH=pythonEnv['PYTHONINCLUDE'])