From: Robert Bradshaw Date: Thu, 12 Jun 2008 23:35:35 +0000 (-0700) Subject: Only make dep file for recursive X-Git-Tag: 0.9.8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9129b4104a313d7f60976d4b6331c0a1a2dd63f3;p=cython.git Only make dep file for recursive --- diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index aa47543c..b5292dc9 100644 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -223,7 +223,7 @@ class Context: return 1 def read_dependency_file(self, source_path): - dep_path = replace_suffix(source_path, ".dep") + dep_path = Utils.replace_suffix(source_path, ".dep") if os.path.exists(dep_path): f = open(dep_path, "rU") chunks = [ line.strip().split(" ", 1) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 3f873d4c..658407c8 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -54,7 +54,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): if self.has_imported_c_functions(): self.module_temp_cname = env.allocate_temp_pyobject() env.release_temp(self.module_temp_cname) - self.generate_dep_file(env, result) + if options.recursive: + self.generate_dep_file(env, result) self.generate_c_code(env, options, result) self.generate_h_code(env, options, result) self.generate_api_code(env, result)