Mercurial > p > mysql-python > mysqldb-2
view setup.py @ 30:e3eb10510ddc MySQLdb
update svn ignore for release.py and some generated dirs
author | kylev |
---|---|
date | Wed, 11 Feb 2009 20:10:30 +0000 |
parents | 2f4672764d39 |
children | 7c7b7114864b |
line wrap: on
line source
#!/usr/bin/env python import os import sys import ez_setup; ez_setup.use_setuptools() 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)