view setup.py @ 18:d55bfb1a4701 MySQLdb

Tons of changes from major refactoring/cleanup. This is all really broken right now. In particular, all results are returned as strings.
author adustman
date Fri, 14 Mar 2008 23:06:29 +0000
parents 0e37ee00beb7
children 1c0ff5eb071b
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 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',
            '_mysql_fields.c',
            ],
        **options),
    ]
metadata['long_description'] = metadata['long_description'].replace(r'\n', '')
setup(**metadata)