srcdir = srcdir + '/..'
sys.path.insert(0, srcdir + '/buildtools/wafsamba')
-from waflib import Options, Logs, Utils
+from waflib import Options, Logs, Errors
import wafsamba, samba_dist
import samba_utils, samba_version
def configure(conf):
-
# No need to build python bindings for talloc/tevent/tdb
if conf.IN_LAUNCH_DIR():
conf.env.standalone_ctdb = True
conf.env.SOCKET_WRAPPER_SO_PATH = conf.CONFIG_GET('LIBSOCKET_WRAPPER_SO_PATH')
else:
if not conf.CHECK_POPT():
- raise Utils.WafError('popt development packages have not been found\nIf third_party is installed, check that it is in the proper place.')
+ raise Errors.WafError('popt development packages have not been found\nIf third_party is installed, check that it is in the proper place.')
else:
conf.define('USING_SYSTEM_POPT', 1)
conf.env.SOCKET_WRAPPER_SO_PATH = ''
if conf.env.standalone_ctdb or conf.CONFIG_GET('ENABLE_SELFTEST'):
if not conf.CHECK_SOCKET_WRAPPER():
- raise Utils.WafError('socket_wrapper package has not been found.\nIf third_party is installed, check that it is in the proper place.')
+ raise Errors.WafError('socket_wrapper package has not been found.\nIf third_party is installed, check that it is in the proper place.')
else:
conf.define('USING_SYSTEM_SOCKET_WRAPPER', 1)
conf.env.SOCKET_WRAPPER_SO_PATH = conf.CONFIG_GET('LIBSOCKET_WRAPPER_SO_PATH')
def test(ctx):
- import Scripting
+ from waflib import Scripting
Scripting.commands.append('build')
Scripting.commands.append('testonly')
def dist():
- import Scripting
+ from waflib import Scripting
Scripting.commands.append('manpages')
Scripting.commands.append('distonly')
def rpm(ctx):
- import Scripting
+ from waflib import Scripting
Scripting.commands.append('manpages')
Scripting.commands.append('distonly')
Scripting.commands.append('rpmonly')
def ctags(ctx):
"build 'tags' file using ctags"
- import Utils
+ from waflib import Utils
source_root = os.path.dirname(Utils.g_module.root_path)
cmd = 'ctags $(find %s -name "*.[ch]")' % source_root
print("Running: %s" % cmd)