module_is_name should not be static so that cython freeze can access it
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 18 Feb 2011 02:04:16 +0000 (18:04 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 18 Feb 2011 02:04:16 +0000 (18:04 -0800)
Cython/Compiler/ModuleNode.py

index 9ca919b79f492834d3af995969c4c047cea90fae..72721b6ac8fb7f095643f156e503d167bda1786a 100644 (file)
@@ -272,7 +272,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
 
         code = globalstate['before_global_var']
         code.putln('#define __Pyx_MODULE_NAME "%s"' % self.full_module_name)
-        code.putln("static int %s%s = 0;" % (Naming.module_is_main, self.full_module_name.replace('.', '__')))
+        code.putln("int %s%s = 0;" % (Naming.module_is_main, self.full_module_name.replace('.', '__')))
         code.putln("")
         code.putln("/* Implementation of %s */" % env.qualified_name)