-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
31 lines (27 loc) · 1.12 KB
/
setup.py
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
#!/usr/bin/env python
import os
import sys
from setuptools import setup, Extension, find_packages
if not hasattr(sys, "hexversion") or sys.hexversion < 0x02040000:
raise Error("Python 2.4 or newer is required")
__version__ = "0.2.0"
setup(
name="attachsql",
description="A Python wrapper for the libAttachSQL connector for MySQL servers",
version=__version__,
author="Andrew Hutchings <[email protected]>",
ext_modules=[
Extension("attachsql",
sources=['src/module.c',
'src/connection.c',
'src/util.c',
'src/query.c',
'src/statement.c',
'src/pool.c'
],
libraries=['attachsql'],
# extra_compile_args=['-fsanitize=address','-O0','-g', '-fno-omit-frame-pointer'],
# extra_link_args=['-fsanitize=address','-O0','-g', '-fno-omit-frame-pointer']
)],
packages=find_packages(exclude=["tests", "*.tests", "*.tests.*", "tests.*"])
)