From: Andrew Tridgell Date: Sat, 27 Mar 2010 03:50:43 +0000 (+1100) Subject: build: install build python modules correctly X-Git-Tag: samba-3.6.0pre1~3400 X-Git-Url: http://git.samba.org/samba.git/?p=nivanova%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=307ac977a269d1ef2a2baca6be5360d8582efc76;ds=sidebyside build: install build python modules correctly --- diff --git a/buildtools/wafsamba/samba_python.py b/buildtools/wafsamba/samba_python.py index 9a887a80a55..bb8939caf99 100644 --- a/buildtools/wafsamba/samba_python.py +++ b/buildtools/wafsamba/samba_python.py @@ -61,6 +61,14 @@ def SAMBA_PYTHON(bld, name, local_include = local_include, samba_deps = TO_LIST(deps), link_name = link_name, - name = name + name = name, + install_path = None ) + + destdir='${PYTHONDIR}' + dname=os.path.dirname(realname) + if dname: + destdir += '/' + dname + bld.INSTALL_FILES(destdir, name + '.so', destname=os.path.basename(realname)) + Build.BuildContext.SAMBA_PYTHON = SAMBA_PYTHON