Better compile message.
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 10 Dec 2010 22:37:05 +0000 (14:37 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 10 Dec 2010 22:37:05 +0000 (14:37 -0800)
Cython/Build/Dependencies.py

index 0852751fa2dc318a024a2a2e7ce0d140e3e7b9b8..207f72cdf8ee53c9492e79ee5207041fb8e0f1a4 100644 (file)
@@ -474,7 +474,10 @@ def cythonize(module_list, exclude=[], nthreads=0, aliases=None, **options):
                     dep_timestamp, dep = deps.newest_dependency(source)
                     priority = 2 - (dep in deps.immediate_dependencies(source))
                 if c_timestamp < dep_timestamp:
-                    print("Compiling %s because it depends on %s" % (source, dep))
+                    if source == dep:
+                        print("Cythonizing %s because it changed." % source)
+                    else:
+                        print("Cythonizing %s because it depends on %s." % (source, dep))
                     to_compile.append((priority, source, c_file, options))
                 new_sources.append(c_file)
             else: