Closed ritiek closed 5 years ago
This is because we're pulling an old version of waf which does not work for Python 3.7 (reference). The waf maintainers have since fixed this, so updating waf should close this issue.
diff --git a/waflib/Node.py b/waflib/Node.py
index a3c81e2..f5542f3 100644
--- a/waflib/Node.py
+++ b/waflib/Node.py
@@ -282,7 +282,7 @@ class Node(object):
if maxdepth:
for k in node.ant_iter(accept=accept,maxdepth=maxdepth-1,pats=npats,dir=dir,src=src,remove=remove):
yield k
- raise StopIteration
+ return
def ant_glob(self,*k,**kw):
src=kw.get('src',True)
dir=kw.get('dir',False)
To fix this issue we only need to change one line. Python3.7's PEP already told us how to fix such breakage: https://www.python.org/dev/peps/pep-0479/
Any news on this?
i guess if someone steps up and creates a PR from the above patch, the repo owner could and would click on the merge button.
With my
python
pointing to Python 3.7, results in a traceback:Everything goes fine if
python
points to Python 2.7, 3.5 or 3.6.