Mercurial > p > mysql-python > mysqldb-2
annotate 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 |
rev | line source |
---|---|
0 | 1 #!/usr/bin/env python |
2 | |
3 import os | |
4 import sys | |
9
0e37ee00beb7
Merge changes from 1.2 branch (r470:483): Mostly build-related.
adustman
parents:
6
diff
changeset
|
5 import ez_setup; ez_setup.use_setuptools() |
0e37ee00beb7
Merge changes from 1.2 branch (r470:483): Mostly build-related.
adustman
parents:
6
diff
changeset
|
6 from setuptools import setup, Extension |
0 | 7 |
8 if sys.version_info < (2, 3): | |
5 | 9 raise Error, "Python-2.3 or newer is required" |
0 | 10 |
4 | 11 if os.name == "posix": |
5 | 12 from setup_posix import get_config |
4 | 13 else: # assume windows |
5 | 14 from setup_windows import get_config |
0 | 15 |
5 | 16 metadata, options = get_config() |
6 | 17 metadata['ext_modules'] = [ |
18 Extension( | |
19 sources = [ | |
20 '_mysql.c', | |
21 '_mysql_connections.c', | |
22 '_mysql_results.c', | |
18
d55bfb1a4701
Tons of changes from major refactoring/cleanup. This is all really broken
adustman
parents:
9
diff
changeset
|
23 '_mysql_fields.c', |
6 | 24 ], |
25 **options), | |
26 ] | |
9
0e37ee00beb7
Merge changes from 1.2 branch (r470:483): Mostly build-related.
adustman
parents:
6
diff
changeset
|
27 metadata['long_description'] = metadata['long_description'].replace(r'\n', '') |
0 | 28 setup(**metadata) |