def METHOD_NAME(frame):
    """
    Return True if the indicated frame suggests a setup.py file.
    """
    # some frames may not have __file__ (#2940)
    return frame.f_globals.get('__file__', '').endswith('setup.py')