Menu

[947b1a]: / MySQLdb / setup.py  Maximize  Restore  History

Download this file

36 lines (30 with data), 925 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
29
30
31
32
33
34
35
#!/usr/bin/env python
import os
import sys
<<<<<<< HEAD
=======
from distribute_setup import use_setuptools
use_setuptools()
>>>>>>> MySQLdb-1.2
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()
<<<<<<< HEAD
metadata['ext_modules'] = [
Extension(sources=['src/mysqlmod.c',
'src/connections.c',
'src/results.c',
'src/fields.c',
],
**options),
]
=======
metadata['ext_modules'] = [Extension(sources=['_mysql.c'], **options)]
>>>>>>> MySQLdb-1.2
metadata['long_description'] = metadata['long_description'].replace(r'\n', '')
setup(**metadata)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.