Mercurial > p > mysql-python > mysqldb-2
view setup.py @ 36:38bf72f3c3de MySQLdb
Last merge of everything from 1.2br that went into 1.2.3b1 (499:567)
author | kylev |
---|---|
date | Thu, 12 Feb 2009 00:28:34 +0000 |
parents | 7c7b7114864b |
children | c9c2c8bf1b8c |
line wrap: on
line source
#!/usr/bin/env python import os import sys from setuptools import setup, Extension if not hasattr(sys, "hexversion") or sys.hexversion < 0x02030000: 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', '_mysql_connections.c', '_mysql_results.c', '_mysql_fields.c', ], **options), ] metadata['long_description'] = metadata['long_description'].replace(r'\n', '') setup(**metadata)