diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2011-09-02 21:53:51 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2011-09-02 21:53:51 +1000 |
commit | c545f4fc2943d94c4bcd57c162cadb3855f6974f (patch) | |
tree | 6b5eff905006f307d308506f420d0960a6a7e6cc /lang | |
parent | 6ba3445126c94b40c68ae0f2daa2df0d9ca8451c (diff) | |
download | mongo-c545f4fc2943d94c4bcd57c162cadb3855f6974f.tar.gz |
Split out the Python and examples from the top level Makefile.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/Makefile.am | 12 | ||||
-rw-r--r-- | lang/python/setup.py | 4 |
2 files changed, 14 insertions, 2 deletions
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am new file mode 100644 index 00000000000..1fd2c58b34d --- /dev/null +++ b/lang/python/Makefile.am @@ -0,0 +1,12 @@ +INCLUDES = -I$(abs_top_builddir) + +PYSRC = $(top_srcdir)/lang/python +if DEBUG +PY_SETUP_DEBUG = -g +endif +all-local: _wiredtiger.so +$(PYSRC)/wiredtiger_wrap.c: $(top_builddir)/wiredtiger.h $(PYSRC)/wiredtiger.i + @(cd $(PYSRC) && $(SWIG) -python -I$(abs_top_builddir) wiredtiger.i) + +_wiredtiger.so: $(wt_LTLIBRARIES) $(PYSRC)/wiredtiger_wrap.c + $(PYTHON) $(PYSRC)/setup.py build_ext -b . -t . -f $(PY_SETUP_DEBUG) diff --git a/lang/python/setup.py b/lang/python/setup.py index eaa3ee1330a..e293b62afad 100644 --- a/lang/python/setup.py +++ b/lang/python/setup.py @@ -19,8 +19,8 @@ wt_ver = '%d.%d' % (WIREDTIGER_VERSION_MAJOR, WIREDTIGER_VERSION_MINOR) setup(name='wiredtiger', version=wt_ver, ext_modules=[Extension('_wiredtiger', [os.path.join(dir, 'wiredtiger_wrap.c')], - include_dirs=['.'], - library_dirs=['.libs'], + include_dirs=['../..'], + library_dirs=['../../.libs'], libraries=['wiredtiger'], )], py_modules=['wiredtiger'], |