Closed
Description
Traceback:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/werkzeug/routing.py", line 948
exec(code, globs, locs)
SyntaxError: unqualified exec is not allowed in function '_compile_builder' it contains a nested function with free variables
I haven't dug too deep into this, but I suspect it's the comprehensions which, in python2.7.5, are treated as subfunctions https://stackoverflow.com/a/52498591/8826764
python2.7.5 is important to support as it's the default python version shipped with centos7, and we're not at EOL quite yet.
I'll have time on the weekend to make an MR for this if that's OK with y'all.
If not, please change the setup python_requires to require a higher version of python.