-
-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Can we upgrade or loose the version of antlr4
?
#2491
Comments
Thanks for the feature request @dnnspark.
# download the omegaconf/hydra sources and the antlr 4.11.1 binary:
git clone https://github.com/omry/omegaconf
git clone https://github.com/facebookresearch/hydra
wget https://www.antlr.org/download/antlr-4.11.1-complete.jar
# replace the old antlr binaries:
rm omegaconf/build_helpers/bin/antlr-4.9.3-complete.jar
rm hydra/build_helpers/bin/antlr-4.9.3-complete.jar
cp antlr-4.11.1-complete.jar omegaconf/build_helpers/bin/
cp antlr-4.11.1-complete.jar hydra/build_helpers/bin/
# edit text files to replace the strings "4.9.3" and "4.9.*" with "4.11.1":
grep -ErlI '4\.9\.[\*3]' | xargs sed -E -i 's/4\.9\.[\*3]/4.11.1/'
# build an sdist / wheel:
pip install build
(cd omegaconf; python -m build;)
(cd hydra; python -m build;)
# install the wheels and verify antlr version:
pip install omegaconf/dist/omegaconf-2.4.0.dev0-py3-none-any.whl
pip install hydra/dist/hydra_core-1.4.0.dev0-py3-none-any.whl
pip list 2>/dev/null | grep antlr4 # check that installed version of antlr4-python3-runtime is 4.11.1 |
Thanks for quick and thorough response, @Jasha10. I will try your suggestion. |
@Jasha10 Is it possible to provide an option to override ANTLR4 jar? Similar issue appears in Arch distribution. Maintainers mitigate it with patching build scripts for |
🚀 Feature Request
hydra requires
antlr4-python3-runtime==4.9.*
, but the environment of the mono-repo of the company I work for requiresantlr4-python3-runtime==4.11.1
. I saw there was a similar issue previously. Can we either upgrade or loose the version (using>=
not==
) of this package?The text was updated successfully, but these errors were encountered: