parameters: ()
return_statement: return data
docstring: Generate the list of files needed for py2exe/py2app package files
docstring_summary: Generate the list of files needed for py2exe/py2app package files
docstring_tokens: Generate the list of files needed for py2exe / py2app package files
function: def GenerateBinPackageFiles():
      """Generate the list of files needed for py2exe/py2app package files"""
      data = [("include/python2.5",
                 glob.glob("include/python2.5/%s/*" % __platform__)),
                ("pixmaps/theme/Default", ["pixmaps/theme/Default/README"]),
                ("pixmaps/theme/Tango",["pixmaps/theme/Tango/AUTHORS",
                                        "pixmaps/theme/Tango/COPYING"]),
                ("pixmaps/theme/Tango/toolbar",
                 glob.glob("pixmaps/theme/Tango/toolbar/*.png")),
                ("pixmaps/theme/Tango/menu",
                 glob.glob("pixmaps/theme/Tango/menu/*.png")),
                ("pixmaps/theme/Tango/mime",
                 glob.glob("pixmaps/theme/Tango/mime/*.png")),
                ("pixmaps/theme/Tango/other",
                 glob.glob("pixmaps/theme/Tango/other/*.png")),
                ("styles", glob.glob("styles/*.ess")),
                ("ekeys", glob.glob("ekeys/*.ekeys")),
                ("tests/syntax", glob.glob("tests/syntax/*")),
                ("docs", glob.glob("docs/*.txt")), "AUTHORS", "FAQ", "INSTALL",
                "README","CHANGELOG","COPYING", "NEWS", "THANKS", "TODO",
                "setup.cfg"
              ]
  
      # Get the locale files
      for loc_dir in os.listdir("locale"):
          tmp = "locale/" + loc_dir + "/LC_MESSAGES"
          if os.path.isdir(tmp):
              tmp2 = tmp + "/Editra.mo"
              if os.path.exists(tmp2):
                  data.append((tmp, [tmp2]))
  
      # Only bundle the plugins for the running version of python being used for
      # the build.
      data.append(("plugins",
                   glob.glob("plugins/*py%d.%d.egg" % sys.version_info[:2])))
  
      # Get platform specific icons
      pixlist = ["pixmaps/editra.png", "pixmaps/editra_doc.png"]
  
      if "darwin" in sys.platform:
          data.append("pixmaps/editra_doc.icns")
          pixlist.extend(["pixmaps/editra.icns", "pixmaps/editra_doc.icns"])
      elif sys.platform.startswith("win"):
          data.extend(glob.glob("include/windows/*.*"))
          pixlist.append("pixmaps/editra.ico")
  
      data.append(("pixmaps", pixlist))
  
      return data
function_tokens: def GenerateBinPackageFiles ( ) : data = [ ( "include/python2.5" , glob . glob ( "include/python2.5/%s/*" % __platform__ ) ) , ( "pixmaps/theme/Default" , [ "pixmaps/theme/Default/README" ] ) , ( "pixmaps/theme/Tango" , [ "pixmaps/theme/Tango/AUTHORS" , "pixmaps/theme/Tango/COPYING" ] ) , ( "pixmaps/theme/Tango/toolbar" , glob . glob ( "pixmaps/theme/Tango/toolbar/*.png" ) ) , ( "pixmaps/theme/Tango/menu" , glob . glob ( "pixmaps/theme/Tango/menu/*.png" ) ) , ( "pixmaps/theme/Tango/mime" , glob . glob ( "pixmaps/theme/Tango/mime/*.png" ) ) , ( "pixmaps/theme/Tango/other" , glob . glob ( "pixmaps/theme/Tango/other/*.png" ) ) , ( "styles" , glob . glob ( "styles/*.ess" ) ) , ( "ekeys" , glob . glob ( "ekeys/*.ekeys" ) ) , ( "tests/syntax" , glob . glob ( "tests/syntax/*" ) ) , ( "docs" , glob . glob ( "docs/*.txt" ) ) , "AUTHORS" , "FAQ" , "INSTALL" , "README" , "CHANGELOG" , "COPYING" , "NEWS" , "THANKS" , "TODO" , "setup.cfg" ] # Get the locale files for loc_dir in os . listdir ( "locale" ) : tmp = "locale/" + loc_dir + "/LC_MESSAGES" if os . path . isdir ( tmp ) : tmp2 = tmp + "/Editra.mo" if os . path . exists ( tmp2 ) : data . append ( ( tmp , [ tmp2 ] ) ) # Only bundle the plugins for the running version of python being used for # the build. data . append ( ( "plugins" , glob . glob ( "plugins/*py%d.%d.egg" % sys . version_info [ : 2 ] ) ) ) # Get platform specific icons pixlist = [ "pixmaps/editra.png" , "pixmaps/editra_doc.png" ] if "darwin" in sys . platform : data . append ( "pixmaps/editra_doc.icns" ) pixlist . extend ( [ "pixmaps/editra.icns" , "pixmaps/editra_doc.icns" ] ) elif sys . platform . startswith ( "win" ) : data . extend ( glob . glob ( "include/windows/*.*" ) ) pixlist . append ( "pixmaps/editra.ico" ) data . append ( ( "pixmaps" , pixlist ) ) return data