首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

[D]简单函数求解释解决方法

2012-04-21 
[D]简单函数求解释Python code#!/usr/bin/env pythonfrom distutils.core import setup, Extensionfrom ga

[D]简单函数求解释

Python code
#!/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 = [])


以上是setup.py文件的全部代码,请问setup函数究竟是做了什么?
另外这个setup文件的作用是什么?
---------------------------
Double行动:
原帖分数:40
加分:40

[解决办法]
找点distutils的资料看看。
[解决办法]
# This is a standard distutils setup initializer. If you need to do
# anything more complex here, refer to the Python distutils documentation.

[解决办法]
这个不是打包的吗。

热点排行