fix introduced bug
authorRobert Bradshaw <robertwb@math.washington.edu>
Sat, 11 Dec 2010 09:58:38 +0000 (01:58 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sat, 11 Dec 2010 09:58:38 +0000 (01:58 -0800)
Cython/Build/Dependencies.py

index 378a7821d500e9a7c2def03c177edee3a7149e4e..66046312d42cb24387b8843d9e4969f8b6c14b44 100644 (file)
@@ -430,9 +430,10 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None):
                 module_name = name
             if module_name not in seen:
                 kwds = deps.distutils_info(file, aliases, base).values
-                for key, value in base.values.items():
-                    if key not in kwds:
-                        kwds[key] = value
+                if base is not None:
+                    for key, value in base.values.items():
+                        if key not in kwds:
+                            kwds[key] = value
                 module_list.append(exn_type(
                         name=module_name,
                         sources=[file],
@@ -481,9 +482,9 @@ def cythonize(module_list, exclude=[], nthreads=0, aliases=None, quiet=False, **
                 if c_timestamp < dep_timestamp:
                     if not quiet:
                         if source == dep:
-                            print("Cythonizing %s because it changed." % source)
+                            print("Compiling %s because it changed." % source)
                         else:
-                            print("Cythonizing %s because it depends on %s." % (source, dep))
+                            print("Compiling %s because it depends on %s." % (source, dep))
                     to_compile.append((priority, source, c_file, options))
                 new_sources.append(c_file)
             else: