1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

r26108: Add makefile rules for building, installing and checking python bindings.

(This used to be commit d8d04300d2)
This commit is contained in:
Jelmer Vernooij 2007-11-25 03:06:50 +01:00 committed by Stefan Metzmacher
parent 86be3d2f61
commit b6d657863c
2 changed files with 19 additions and 4 deletions

View File

@ -68,10 +68,10 @@ libtdb.a: $(TDB_OBJ)
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) @SONAMEFLAG@$(SONAME)
@ -110,3 +110,16 @@ distclean: clean
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

View File

@ -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"])],
)