code: def exclude_package(self, package):
          
  
          pfx = package + '.'
          if self.packages:
              self.packages = [
                  p for p in self.packages
                  if p != package and not p.startswith(pfx)
              ]
  
          if self.py_modules:
              self.py_modules = [
                  p for p in self.py_modules
                  if p != package and not p.startswith(pfx)
              ]
  
          if self.ext_modules:
              self.ext_modules = [
                  p for p in self.ext_modules
                  if p.name != package and not p.name.startswith(pfx)
              ]
docs: Remove packages, modules, and extensions in named package