Files
mongo/lang/python/setup.py
Michael Cahill 69cd69d59b Build the Python API into the build directory.
* * *
[mq]: config-script
2011-03-11 12:03:44 +11:00

19 lines
557 B
Python

import os, sys
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(sys.argv[0])
setup(name='wiredtiger', version='1.0',
ext_modules=[Extension('_wiredtiger', ['wiredtiger.i'],
swig_opts=['-I.', '-I' + dir],
include_dirs=['.'],
library_dirs=['.'],
libraries=['wiredtiger'],
)],
py_modules=['wiredtiger'],
)