Using waf 2.1.5 parser.defaults no longer exists (that's part of
the optparse module and waf 2.1.5 uses argparse)
This patch adjusts the default cleanup for argparse.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
option = opt.parser.get_option(k)
if option:
opt.parser.remove_option(k)
- del opt.parser.defaults['PRIVATELIBDIR']
- del opt.parser.defaults['MODULESDIR']
+ opt.parser.set_defaults(PRIVATELIBDIR=None, MODULESDIR=None)
# get all the basic GNU options from the gnu_dirs tool