<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def get_console_scripts(setup_data):
    '''Parse and return a list of console_scripts from setup_data'''

    # TODO: support ini format of entry_points
    # TODO: support setup.cfg entry_points as available in pbr

    if 'entry_points' not in setup_data:
        return []

    console_scripts = setup_data['entry_points'].get('console_scripts', [])
    return [script.split('=')[0].strip() for script in console_scripts]