@classmethod
def register(cls, package_type):
    """Register a concrete implementation of a Package to be recognized by pex."""
    if not issubclass(package_type, cls):
        raise TypeError('package_type must be a subclass of Package.')
    cls._REGISTRY.add(package_type)
