@classmethod
def create_exclude_package(cls, package_name, recursive=True):
    """Convenience constructor for a package exclusion rule.

        Essentially equivalent to just using ``shading_exclude('package_name.**')``.

        :param string package_name: Package name to exclude (eg, ``org.pantsbuild.example``).
        :param bool recursive: Whether to exclude everything under any subpackage of ``package_name``,
          or just direct children of the package. (Defaults to True).
        """
    return cls.create_relocate(from_pattern=cls._format_package_glob(
        package_name, recursive), shade_prefix='')
