Mercurial > p > mysql-python > mysqldb-2
annotate setup.py @ 22:597efa4e0311 MySQLdb
Trivial patch for dict.has_key() being deprecated going forward.
https://sourceforge.net/tracker/index.php?func=detail&aid=2565545&group_id=22307&atid=374934
author | kylev |
---|---|
date | Fri, 06 Feb 2009 04:31:38 +0000 |
parents | d55bfb1a4701 |
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) |