diff options
Diffstat (limited to 'test/SWIG/remove-modules.py')
-rw-r--r-- | test/SWIG/remove-modules.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SWIG/remove-modules.py b/test/SWIG/remove-modules.py index 1a48c9e..f5d4010 100644 --- a/test/SWIG/remove-modules.py +++ b/test/SWIG/remove-modules.py @@ -85,6 +85,11 @@ foo = Environment(SWIGFLAGS='-python', FRAMEWORKSFLAGS='%(frameworks)s', ) +import sys +if sys.version[0] == '1': + # SWIG requires the -classic flag on pre-2.0 Python versions. + foo.Append(SWIGFLAGS = ' -classic') + foo.LoadableModule(target = 'modulename', source = ['module.i']) """ % locals()) |