Author: jelmer Date: 2007-11-25 03:06:50 +0000 (Sun, 25 Nov 2007) New Revision: 26108
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26108 Log: Add makefile rules for building, installing and checking python bindings. Modified: branches/SAMBA_4_0/source/lib/tdb/ branches/SAMBA_4_0/source/lib/tdb/Makefile.in branches/SAMBA_4_0/source/lib/tdb/setup.py Changeset: Property changes on: branches/SAMBA_4_0/source/lib/tdb ___________________________________________________________________ Name: svn:ignore - *.pc configure + build *.pyc _trial_temp config.log *.pc configure Modified: branches/SAMBA_4_0/source/lib/tdb/Makefile.in =================================================================== --- branches/SAMBA_4_0/source/lib/tdb/Makefile.in 2007-11-25 03:04:04 UTC (rev 26107) +++ branches/SAMBA_4_0/source/lib/tdb/Makefile.in 2007-11-25 03:06:50 UTC (rev 26108) @@ -68,10 +68,10 @@ ar -rv libtdb.a $(TDB_OBJ) libtdb.$(SHLIBEXT): $(SOLIB) - ln -s $< $@ + ln -fs $< $@ $(SONAME): $(SOLIB) - ln -s $< $@ + ln -fs $< $@ $(SOLIB): $(TDB_OBJ) $(SHLD) $(SHLD_FLAGS) -o $@ $(TDB_OBJ) @[EMAIL PROTECTED](SONAME) @@ -110,3 +110,16 @@ realdistclean: distclean rm -f configure include/config.h.in + +build-python: libtdb.$(SHLIBEXT) + ./setup.py build + +install-python: + ./setup.py install --prefix=$(prefix) + +check-python: build-python + # FIXME: Should be more portable: + LD_LIBRARY_PATH=. PYTHONPATH=.:build/lib.linux-i686-2.4 trial python/tests/simple.py + +clean-python: + ./setup.py clean Modified: branches/SAMBA_4_0/source/lib/tdb/setup.py =================================================================== --- branches/SAMBA_4_0/source/lib/tdb/setup.py 2007-11-25 03:04:04 UTC (rev 26107) +++ branches/SAMBA_4_0/source/lib/tdb/setup.py 2007-11-25 03:06:50 UTC (rev 26108) @@ -1,8 +1,10 @@ #!/usr/bin/python from distutils.core import setup from distutils.extension import Extension + setup(name='tdb', version='1.0', + url="http://tdb.samba.org/", ext_modules=[Extension('_tdb', ['tdb.i'], include_dirs=['include'], - libraries=['tdb'], swig_opts=["-noproxydel"])], - ) + library_dirs=["."], libraries=['tdb'], swig_opts=["-noproxydel"])], +)
