This PR updates version of waf (1.7.11 -> 2.0.22) to make it possible to build the project using python3, otherwise it raises an error:
==> python3 ./waf configure --static --shared --prefix=/usr/local/Cellar/nanomsgxx/0.2_2
Traceback (most recent call last):
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Node.py", line 282, in ant_iter
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Scripting.py", line 97, in waf_entry_point
run_commands()
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Scripting.py", line 149, in run_commands
parse_options()
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Scripting.py", line 127, in parse_options
Context.create_context('options').execute()
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Options.py", line 134, in execute
super(OptionsContext,self).execute()
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Context.py", line 87, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Context.py", line 128, in recurse
user_function(self)
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/wscript", line 74, in options
waf.load('compiler_c compiler_cxx waf_unit_test')
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Context.py", line 84, in load
fun(self)
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Tools/compiler_c.py", line 31, in options
opt.load_special_tools('c_*.py',ban=['c_dumbpreproc.py'])
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Context.py", line 264, in load_special_tools
lst=self.root.find_node(waf_dir).find_node('waflib/extras').ant_glob(var)
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Node.py", line 331, in ant_glob
ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=25,dir=dir,src=src,remove=kw.get('remove',True))]
File "/private/tmp/nanomsgxx-20210510-4907-i114kb/nanomsgxx-0.2/.waf3-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Node.py", line 331, in <listcomp>
ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=25,dir=dir,src=src,remove=kw.get('remove',True))]
RuntimeError: generator raised StopIteration
This PR updates version of waf (1.7.11 -> 2.0.22) to make it possible to build the project using python3, otherwise it raises an error: