Zellic / solidity-parser

Solp is a Python library used for reading, parsing and analysis of Solidity source projects and contracts without a dependency on the solc compiler.
https://solp.zellic.io
GNU Affero General Public License v3.0
51 stars 2 forks source link

Antlr build fix #2

Closed ajvpot closed 1 year ago

ajvpot commented 1 year ago

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.