def add_to_distribution(dist):
 try:
  dist.add_qt_bindings()
 except AttributeError:
  raise ImportError('This script requires guidata 1.5+')
 for _modname in ('spyder', 'spyderplugins'):
  dist.add_module_data_files(_modname, ('',), ('.png', '.svg', '.html', '.png', '.txt', '.js', '.inv', '.ico', '.css', '.doctree', '.qm', '.py'), copy_to_root=False)

def add_to_distribution ( dist ) : try : dist . add_qt_bindings ( ) except AttributeError : raise ImportError ( 'This script requires guidata 1.5+' ) for _modname in ( 'spyder' , 'spyderplugins' ) : dist . add_module_data_files ( _modname , ( '' , ) , ( '.png' , '.svg' , '.html' , '.png' , '.txt' , '.js' , '.inv' , '.ico' , '.css' , '.doctree' , '.qm' , '.py' ) , copy_to_root = False )
add package to py2exe/cx_freeze distribution object extension to guidata .