summaryrefslogtreecommitdiffstats
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-27 14:50:43 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:09 +1000
commit307ac977a269d1ef2a2baca6be5360d8582efc76 (patch)
tree70e3412fc488529fe6b4968251aadf28b095bf73 /buildtools/wafsamba
parent4d8d759e92506de4dcccce7d51ac83ef638153ec (diff)
downloadsamba-307ac977a269d1ef2a2baca6be5360d8582efc76.tar.gz
samba-307ac977a269d1ef2a2baca6be5360d8582efc76.tar.xz
samba-307ac977a269d1ef2a2baca6be5360d8582efc76.zip
build: install build python modules correctly
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_python.py10
1 files changed, 9 insertions, 1 deletions
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