for f in filenames:
if file_matches(f):
if not f.endswith('.py'): continue
- filepath = os.path.join(dirpath, f)[:-len(".py")]
+ filepath = os.path.join(dirpath, f)
+ if os.path.getsize(filepath) == 0: continue
+ if 'no doctest' in open(filepath).next(): continue
+ filepath = filepath[:-len(".py")]
modulename = module_prefix + filepath[len(path)+1:].replace(os.path.sep, '.')
if not [ 1 for match in selectors if match(modulename) ]:
continue
# TODO: Better interface...
-from Cython.Compiler.Dependencies import cythonize
+from Cython.Build.Dependencies import cythonize
from distutils.core import setup
# TODO: Better interface...
-from Cython.Compiler.Dependencies import cythonize
+from Cython.Build.Dependencies import cythonize
from distutils.core import setup