···2020 available.append('antlr')
2121except ImportError as e:
2222 warn(
2323- '\nFalling back on slower textX parser implementation:\n'
2424- ' ImportError: {}\n'
2525- 'Please install all dependencies and reinstall with:\n'
2626- ' pip uninstall\n'
2727- ' pip install -v fasm'.format(e), RuntimeWarning)
2323+ """Unable to import fast Antlr4 parser implementation.
2424+ ImportError: {}
2525+2626+ Falling back to the much slower pure Python textX based parser
2727+ implementation.
2828+2929+ Getting the faster antlr parser can normally be done by installing the
3030+ required dependencies and then reinstalling the fasm package with:
3131+ pip uninstall
3232+ pip install -v fasm
3333+""".format(e), RuntimeWarning)
2834 from fasm.parser.textx import \
2935 parse_fasm_filename, parse_fasm_string, implementation
3036
+13-8
fasm/version.py
···1313# This file is auto-generated by the update_version.py script.
1414# ** WARNING **
15151616-version_str = "UNKNOWN"
1717-version_tuple = (0, 0, 0, 0)
1616+version_str = "0.0.2.post66"
1717+version_tuple = (0, 0, 2, 66)
1818+try:
1919+ from packaging.version import Version as V
2020+ pversion = V("0.0.2.post66")
2121+except ImportError:
2222+ pass
18231919-git_hash = "UNKNOWN"
2020-git_describe = "UNKNOWN"
2424+git_hash = "c0b734e6d373fcffd0522acdd102814bcefb626a"
2525+git_describe = "v0.0.2-66-gc0b734e"
2126git_msg = """\
2222-commit UNKNOWN
2323-Author: UNKNOWN
2424-Date: UNKNOWN
2727+commit c0b734e6d373fcffd0522acdd102814bcefb626a
2828+Author: Tim 'mithro' Ansell <me@mith.ro>
2929+Date: Fri Feb 19 13:05:20 2021 -0800
25302626- UNKNOWN
3131+ Improve the warning message when falling back to the textX.
27322833 Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2934