We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac41e61 commit 1d367eeCopy full SHA for 1d367ee
distutils/command/build_py.py
@@ -360,7 +360,11 @@ def build_modules(self) -> None:
360
self.build_module(module, module_file, package)
361
362
def build_packages(self) -> None:
363
- for package in self.packages or ():
+ if self.packages is None:
364
+ raise TypeError(
365
+ f"{type(self).__name__}.packages is None. Is the Distribution missing packages ?"
366
+ )
367
+ for package in self.packages:
368
# Get list of (package, module, module_file) tuples based on
369
# scanning the package directory. 'package' is only included
370
# in the tuple so that 'find_modules()' and
0 commit comments