Mercurial > p > mysql-python > mysqldb-2
view setup.py @ 8:fa8974a41c76 MySQLdb
New error handling code, plus some small fixes from 1.2
author | adustman |
---|---|
date | Sun, 11 Feb 2007 21:36:29 +0000 |
parents | b6ecc521453f |
children | 0e37ee00beb7 |
line wrap: on
line source
#!/usr/bin/env python import os import sys from distutils.core import setup from distutils.extension import 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', '_mysql_connections.c', '_mysql_results.c', ], **options), ] setup(**metadata)