safety fix
authorStefan Behnel <scoder@users.berlios.de>
Mon, 30 Aug 2010 10:23:35 +0000 (12:23 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 30 Aug 2010 10:23:35 +0000 (12:23 +0200)
Cython/Distutils/build_ext.py

index bda917fcf4594ef9e24d6daebcda9be9895d5d0a..397f0972f081bcfdbc8025376fdd9db04f14830e 100644 (file)
@@ -193,7 +193,7 @@ class build_ext(_build_ext.build_ext):
 
         for source in pyrex_sources:
             target = pyrex_targets[source]
-            depends = [source] + extension.depends
+            depends = [source] + list(extension.depends or ())
             rebuild = self.force or newer_group(depends, target, 'newer')
             if not rebuild and newest_dependency is not None:
                 rebuild = newer(newest_dependency, target)