1 | try: |
---|
2 | import distutils |
---|
3 | from distutils import sysconfig |
---|
4 | from distutils.command.install import install |
---|
5 | from distutils.core import setup, Extension |
---|
6 | except: |
---|
7 | raise SystemExit, "Distutils problem" |
---|
8 | |
---|
9 | sqlite_defines = [] |
---|
10 | sqlite_defines.append(('MODULE_NAME', '"sqlite3"')) |
---|
11 | sqlite_srcs = ['_sqlite/cache.c', \ |
---|
12 | '_sqlite/connection.c', \ |
---|
13 | '_sqlite/cursor.c', \ |
---|
14 | '_sqlite/microprotocols.c', \ |
---|
15 | '_sqlite/module.c', \ |
---|
16 | '_sqlite/prepare_protocol.c', \ |
---|
17 | '_sqlite/row.c', \ |
---|
18 | '_sqlite/statement.c', \ |
---|
19 | '_sqlite/util.c'] |
---|
20 | |
---|
21 | setup(name = "_sqlite3", |
---|
22 | version = "2.5.2", |
---|
23 | description = "sqlite3 Extension to Python", |
---|
24 | |
---|
25 | ext_modules = [Extension('_sqlite3', sqlite_srcs, |
---|
26 | define_macros=sqlite_defines, |
---|
27 | libraries = ["sqlite3"], |
---|
28 | )] |
---|
29 | ) |
---|
30 | |
---|