From 9129b4104a313d7f60976d4b6331c0a1a2dd63f3 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 12 Jun 2008 16:35:35 -0700 Subject: [PATCH] Only make dep file for recursive --- Cython/Compiler/Main.py | 2 +- Cython/Compiler/ModuleNode.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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) -- 2.26.2