That syntax is only valid starting around python3.6. But even if I use python3.6, run_tests.py fails:
Traceback (most recent call last):
File "run_tests.py", line 15, in <module>
from dataclasses import dataclass
ModuleNotFoundError: No module named 'dataclasses'
That module is only available starting with python3.7. So the build system needs to check that the python it finds is >= 3.7.
The cmake build system is similarly broken, looking for python3 but not specifically >= 3.7.
Building re2c-3.0 on OS X 10.13, I have "python" in my PATH (v2.7) and no "python3" in my path. Using the autotools build system:
which results in run_tests.py generated with a first line of:
That leads to a test failure, with test-suite.log:
That syntax is only valid starting around python3.6. But even if I use python3.6, run_tests.py fails:
That module is only available starting with python3.7. So the build system needs to check that the python it finds is >= 3.7.
The cmake build system is similarly broken, looking for python3 but not specifically >= 3.7.