setup.py

来自「python联接mysql驱动 python联接mysql驱动」· Python 代码 · 共 20 行

PY
20
字号
#!/usr/bin/env pythonimport osimport sysimport ez_setup; ez_setup.use_setuptools()from setuptools import setup, Extensionif sys.version_info < (2, 3):    raise Error, "Python-2.3 or newer is required"if os.name == "posix":    from setup_posix import get_configelse: # assume windows    from setup_windows import get_configmetadata, options = get_config()metadata['ext_modules'] = [Extension(sources=['_mysql.c'], **options)]metadata['long_description'] = metadata['long_description'].replace(r'\n', '')setup(**metadata)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?