def _check_setup_scripts(base_release_tag, changed_only=True):
 setup_scripts = [('scripts/%s' % item) for item in ['setup.sh', 'setup_gae.sh', 'install_third_party.sh', 'install_third_party.py']]
 changed_files = _git_diff_names_only(base_release_tag)
 changes_dict = {script: (script in changed_files) for script in setup_scripts}
 if changed_only:
  return {name: status for (name, status) in changes_dict.items() if status}
 else:
  return changes_dict

def _check_setup_scripts ( base_release_tag , changed_only = True ) : setup_scripts = [ ( 'scripts/%s' % item ) for item in [ 'setup.sh' , 'setup_gae.sh' , 'install_third_party.sh' , 'install_third_party.py' ] ] changed_files = _git_diff_names_only ( base_release_tag ) changes_dict = { script : ( script in changed_files ) for script in setup_scripts } if changed_only : return { name : status for ( name , status ) in changes_dict . items ( ) if status } else : return changes_dict
check if setup scripts have changed .