[D]简单函数求解释
#!/usr/bin/env pythonfrom distutils.core import setup, Extensionfrom gamera import gamera_setup# This constant should be the name of the toolkitTOOLKIT_NAME = "musicstaves"# ----------------------------------------# You should not usually have to edit anything below, but it is# implemented here and not in the Gamera core so that you can edit it# if you need to do something more complicated (for example, building# and linking to a third- party library).# ----------------------------------------PLUGIN_PATH = 'D:/python2_5/gamera/toolkits/%s/plugins/' % TOOLKIT_NAMEPACKAGE = 'D:/python2_5/gamera.toolkits.%s' % TOOLKIT_NAMEPLUGIN_PACKAGE = PACKAGE + ".plugins"plugins = gamera_setup.get_plugin_filenames(PLUGIN_PATH)plugin_extensions = gamera_setup.generate_plugins(plugins, PLUGIN_PACKAGE)# This is a standard distutils setup initializer. If you need to do# anything more complex here, refer to the Python distutils documentation.setup(name=TOOLKIT_NAME, version="1.3.6", ext_modules = plugin_extensions, packages = [PACKAGE, PLUGIN_PACKAGE], scripts = [])