[4bfc4e]: setup.py  Maximize  Restore  History

Download this file

29 lines (24 with data), 729 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python
import os
import sys
from setuptools import setup, Extension
if not hasattr(sys, "hexversion") or sys.hexversion < 0x02030000:
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', '')
metadata['test_suite'] = 'nose.collector'
setup(**metadata)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks