Files
mongo/lang/python/setup.py
Michael Cahill 3a6dc4749e Fix Python build again: split SWIG out of setup.py, we want to distribute the
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.
2011-04-26 17:24:21 +10:00

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'],
)