From: Robert Bradshaw Date: Fri, 18 Feb 2011 02:04:16 +0000 (-0800) Subject: module_is_name should not be static so that cython freeze can access it X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=957e1324dd8c3594efd6c1fef6e47519b6fe1e34;p=cython.git module_is_name should not be static so that cython freeze can access it --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 9ca919b7..72721b6a 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -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)