Mercurial > p > mysql-python > mysqldb-2
comparison setup.py @ 9:0e37ee00beb7 MySQLdb
Merge changes from 1.2 branch (r470:483): Mostly build-related.
author | adustman |
---|---|
date | Mon, 26 Feb 2007 00:55:29 +0000 |
parents | b6ecc521453f |
children | d55bfb1a4701 |
comparison
equal
deleted
inserted
replaced
8:fa8974a41c76 | 9:0e37ee00beb7 |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 import os | 3 import os |
4 import sys | 4 import sys |
5 from distutils.core import setup | 5 import ez_setup; ez_setup.use_setuptools() |
6 from distutils.extension import Extension | 6 from setuptools import setup, Extension |
7 | 7 |
8 if sys.version_info < (2, 3): | 8 if sys.version_info < (2, 3): |
9 raise Error, "Python-2.3 or newer is required" | 9 raise Error, "Python-2.3 or newer is required" |
10 | 10 |
11 if os.name == "posix": | 11 if os.name == "posix": |
21 '_mysql_connections.c', | 21 '_mysql_connections.c', |
22 '_mysql_results.c', | 22 '_mysql_results.c', |
23 ], | 23 ], |
24 **options), | 24 **options), |
25 ] | 25 ] |
26 metadata['long_description'] = metadata['long_description'].replace(r'\n', '') | |
26 setup(**metadata) | 27 setup(**metadata) |