def configure(conf): if Options.options.swig: swig = conf.find_program('swig', var='SWIG', mandatory=Options.options.require_swig) if not swig: return swigver = Options.options.swigver if swigver: swigver = map(int, swigver.split('.')) conf.check_swig_version(minver=swigver) conf.env.SWIGPATH_ST = '-I%s'
def configure(conf): if Options.options.swig: swig = conf.find_program('swig', var='SWIG', path_list=Options.options.swig_home, mandatory=Options.options.require_swig) if not swig: return swigver = Options.options.swigver if swigver: swigver = list(map(int, swigver.split('.'))) conf.check_swig_version(minver=swigver) conf.env.SWIGPATH_ST = '-I%s' conf.env.SWIGDEFINES_ST = '-D%s' conf.env['PYTHON_AGNOSTIC'] = Options.options.pyver_agnostic