@staticmethod
def zipsafe(dist):
    """Returns whether or not we determine a distribution is zip-safe."""
    if hasattr(dist, 'egg_info') and dist.egg_info.endswith('EGG-INFO'):
        egg_metadata = dist.metadata_listdir('')
        return ('zip-safe' in egg_metadata and 'native_libs.txt' not in
            egg_metadata)
    else:
        return False
