summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/python/samba/__init__.py7
-rwxr-xr-xsource/python/setup.py10
2 files changed, 16 insertions, 1 deletions
diff --git a/source/python/samba/__init__.py b/source/python/samba/__init__.py
new file mode 100644
index 00000000000..c818ca3e044
--- /dev/null
+++ b/source/python/samba/__init__.py
@@ -0,0 +1,7 @@
+"""samba
+
+Various Python modules for interfacing to Samba.
+
+Try using help() to examine their documentation.
+"""
+
diff --git a/source/python/setup.py b/source/python/setup.py
index 38bc841d989..a5d7879371a 100755
--- a/source/python/setup.py
+++ b/source/python/setup.py
@@ -4,6 +4,7 @@
# Module packaging setup for Samba python extensions
#
# Copyright (C) Tim Potter, 2002
+# Copyright (C) Martin Pool, 2002
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -70,9 +71,16 @@ setup(
samba_srcdir + "ubiqx", samba_srcdir + "smbwrapper",
samba_srcdir + "popt", "/usr/kerberos/include",
"/usr/local/include"],
+
+ # Get the "samba" directory of Python source. At the moment this
+ # just contains the __init__ file that makes it work as a
+ # subpackage. This is needed even though everything else is an
+ # extension module.
+ package_dir = {"samba": os.path.join(samba_srcdir, "python", "samba")},
+ packages = ["samba"],
# Module list
-
+ ext_package = "samba",
ext_modules = [
# SPOOLSS pipe module