Build the Python API into the build directory.

* * *
[mq]: config-script
This commit is contained in:
Michael Cahill
2011-03-11 12:03:44 +11:00
parent 7ea00fec98
commit 69cd69d59b
4 changed files with 10 additions and 9 deletions

View File

@@ -1,16 +1,17 @@
import os
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../../build_posix'],
include_dirs=['../../build_posix'],
library_dirs=['../../build_posix'],
swig_opts=['-I.', '-I' + dir],
include_dirs=['.'],
library_dirs=['.'],
libraries=['wiredtiger'],
)],
py_modules=['wiredtiger'],