Only make dep file for recursive 0.9.8
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 12 Jun 2008 23:35:35 +0000 (16:35 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 12 Jun 2008 23:35:35 +0000 (16:35 -0700)
Cython/Compiler/Main.py
Cython/Compiler/ModuleNode.py

index aa47543cb666ec2ef44c4d27b2ba4658a1235f92..b5292dc9cc1c710afd5d633c3ad9fefde6561e62 100644 (file)
@@ -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)
index 3f873d4cf2cd3a2125e186657c3318f692a7bdd9..658407c86bca8c5a02908c34363cae5cf1f07004 100644 (file)
@@ -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)