From 31fe44bbf916369f43871ecfc32d7d96de4eacd4 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Fri, 10 Dec 2010 14:37:05 -0800 Subject: [PATCH] Better compile message. --- Cython/Build/Dependencies.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index 0852751f..207f72cd 100644 --- a/Cython/Build/Dependencies.py +++ b/Cython/Build/Dependencies.py @@ -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: -- 2.26.2