Ticket #15131: setup.py

File setup.py, 870 bytes (added by pfein@…, 17 years ago)

setup.py to link against apple's sqlite

Line 
1try:
2    import distutils
3    from distutils import sysconfig
4    from distutils.command.install import install
5    from distutils.core import setup, Extension
6except:
7    raise SystemExit, "Distutils problem"
8
9sqlite_defines = []
10sqlite_defines.append(('MODULE_NAME', '"sqlite3"'))
11sqlite_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
21setup(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