results so SWIG isn't required by users to build the Python API. This also addresses some annoyances with paths, since we want to build in a different place from the Python sources.
19 lines
519 B
Python
19 lines
519 B
Python
import os
|
|
from distutils.core import setup, Extension
|
|
|
|
# OS X hack: turn off the Universal binary support that is built into the
|
|
# Python build machinery, just build for the default CPU architecture.
|
|
if not 'ARCHFLAGS' in os.environ:
|
|
os.environ['ARCHFLAGS'] = ''
|
|
|
|
dir = os.path.dirname(__file__)
|
|
|
|
setup(name='wiredtiger', version='1.0',
|
|
ext_modules=[Extension('_wiredtiger', ['wiredtiger_wrap.c'],
|
|
include_dirs=['.'],
|
|
library_dirs=['.'],
|
|
libraries=['wiredtiger'],
|
|
)],
|
|
py_modules=['wiredtiger'],
|
|
)
|