'Compute the list of all modules that will be built, whether
they are specified one-module-at-a-time (\'self.py_modules\') or
by whole packages (\'self.packages\').  Return a list of tuples
(package, module, module_file), just like \'find_modules()\' and
\'find_package_modules()\' do.'

def find_all_modules(self):

    modules = []
    if self.py_modules:
        modules.extend(self.find_modules())
    if self.packages:
        for package in self.packages:
            package_dir = self.get_package_dir(package)
            m = self.find_package_modules(package, package_dir)
            modules.extend(m)
    return modules
