This commit is contained in:
adustman
2009-02-06 01:23:21 +00:00
commit 97ee5f86ca
36 changed files with 8082 additions and 0 deletions

18
MySQLdb/setup.py Normal file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env python
import os
import sys
from setuptools import setup, Extension
if sys.version_info < (2, 3):
raise Error("Python-2.3 or newer is required")
if os.name == "posix":
from setup_posix import get_config
else: # assume windows
from setup_windows import get_config
metadata, options = get_config()
metadata['ext_modules'] = [Extension(sources=['_mysql.c'], **options)]
metadata['long_description'] = metadata['long_description'].replace(r'\n', '')
setup(**metadata)