diff options
author | Martin Pool <mbp@samba.org> | 2002-09-09 08:34:35 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-09-09 08:34:35 +0000 |
commit | 0d3276355e0511d6aff110a3943199629b3c00fd (patch) | |
tree | 28e03ad11c9e522b5e1a6a122bd52f3a9590db97 /source/python/setup.py | |
parent | fc5e8b8f672d461809f113fe14435841608b046f (diff) | |
download | samba-0d3276355e0511d6aff110a3943199629b3c00fd.tar.gz samba-0d3276355e0511d6aff110a3943199629b3c00fd.tar.xz samba-0d3276355e0511d6aff110a3943199629b3c00fd.zip |
Put all Python modules into the 'samba' subpackage. Now you need to
write
import samba.tdbutil
samba.tdbutil.pack('f', ['hello'])
You need 'cvs update -d' to get the new subdirectory for this to build
properly.
Diffstat (limited to 'source/python/setup.py')
-rwxr-xr-x | source/python/setup.py | 10 |
1 files changed, 9 insertions, 1 deletions
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 |