Files
mongo/lang/python/setup.py
Michael Cahill 47a8ea8c7c Initial steps towards a Python API. Rename 'del' to 'remove': that seems safe across languages.
Remove underscores from struct names for now: that should be transparent to applications but avoids messiness in the Python API.
refs #31
2011-03-10 22:17:48 +11:00

18 lines
553 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'] = ''
setup(name='wiredtiger', version='1.0',
ext_modules=[Extension('_wiredtiger', ['wiredtiger.i'],
swig_opts=['-I../../build_posix'],
include_dirs=['../../build_posix'],
library_dirs=['../../build_posix'],
libraries=['wiredtiger'],
)],
py_modules=['wiredtiger'],
)