diff options
Diffstat (limited to 'setuptools/_distutils/command/build_py.py')
-rw-r--r-- | setuptools/_distutils/command/build_py.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/setuptools/_distutils/command/build_py.py b/setuptools/_distutils/command/build_py.py index 1b22004e..7723d359 100644 --- a/setuptools/_distutils/command/build_py.py +++ b/setuptools/_distutils/command/build_py.py @@ -201,16 +201,11 @@ class build_py(Command): "but is not a directory" % package_dir ) - # Require __init__.py for all but the "root package" + # Directories without __init__.py are namespace packages (PEP 420). if package: init_py = os.path.join(package_dir, "__init__.py") if os.path.isfile(init_py): return init_py - else: - log.warn( - ("package init file '%s' not found " + "(or not a regular file)"), - init_py, - ) # Either not in a package at all (__init__.py not expected), or # __init__.py doesn't exist -- so don't return the filename. |