for some reason when antlr has multiple input files the output dir appears to be relative to the top dir of the input files. this was resulting in generated files getting written to
src/solidity_parser/grammar/v080/src/solidity_parser/grammar/v080/SolidityLexer.tokens
instead of
src/solidity_parser/grammar/v080/SolidityLexer.tokens
Use -Xexact-output-dir to tell antlr to not infer output filename paths.
Use a setuptools hook so our generation code gets run in pip and setuptools.
for some reason when antlr has multiple input files the output dir appears to be relative to the top dir of the input files. this was resulting in generated files getting written to
src/solidity_parser/grammar/v080/src/solidity_parser/grammar/v080/SolidityLexer.tokens
instead ofsrc/solidity_parser/grammar/v080/SolidityLexer.tokens
Use -Xexact-output-dir to tell antlr to not infer output filename paths.
Use a setuptools hook so our generation code gets run in
pip
andsetuptools
.