scons: Disable python state tracker when swig is not present.

This commit is contained in:
José Fonseca 2010-11-01 15:27:34 +00:00
parent 0fd41d236f
commit 583e41855b
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,9 @@ if env['toolchain'] == 'crossmingw':
# Cross-compilation not supported
Return()
if not env.Detect(['swig']):
Return()
env = env.Clone()
env.Tool('python')