Files
mysqlclient/setup.py
Monty Taylor 0d1dd6fa89 Remove distribute dependency.
Distribute has been merged with upstream setuptools. The two are
incompatible now, so MySQL-python is uninstallable on systems
with setuptools >= 0.7 installed.
2013-06-23 18:16:17 -04:00

20 lines
532 B
Python

#!/usr/bin/env python
import os
import sys
from setuptools import setup, Extension
if not hasattr(sys, "hexversion") or sys.hexversion < 0x02040000:
raise Error("Python 2.4 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)