build: install build python modules correctly
authorAndrew Tridgell <tridge@samba.org>
Sat, 27 Mar 2010 03:50:43 +0000 (14:50 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:09 +0000 (20:27 +1000)
buildtools/wafsamba/samba_python.py

index 9a887a80a55a8c06830ec588114928b7af83cdc3..bb8939caf9982da1beac1585366748dc30682b14 100644 (file)
@@ -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