- # specifying modules one-at-a-time. Currently they are mutually
- # exclusive: you can define one or the other (or neither), but not
- # both. It remains to be seen how limiting this is.
-
- # Dispose of the two "unusual" cases first: no pure Python modules
- # at all (no problem, just return silently), and over-specified
- # 'packages' and 'py_modules' options.
-
- if not self.py_modules and not self.packages:
- return
- if self.py_modules and self.packages:
- raise DistutilsOptionError, \
- "build_py: supplying both 'packages' and 'py_modules' " + \
- "options is not allowed"
-
- # Now we're down to two cases: 'py_modules' only and 'packages' only.