ensure typing backport uninstalled first
@@ -57,6 +57,8 @@ test-with-cov :
.PHONY : install
install :
+ # Making sure the typing backport isn't installed.
+ pip uninstall -y typing
# Ensure pip, setuptools, and wheel are up-to-date.
pip install --upgrade pip setuptools wheel
# Due to a weird thing with pip, we may need egg-info before running `pip install -e`.
@@ -64,8 +66,9 @@ install :
python setup.py install_egg_info
# Install allennlp as editable and all dependencies except apex since that requires torch to already be installed.
grep -Ev 'NVIDIA/apex\.git' dev-requirements.txt | pip install --upgrade --upgrade-strategy eager -e . -r /dev/stdin
- # Another workaround: Make sure typing isn't installed
- pip freeze | grep "^typing=" > /dev/null && pip uninstall -y typing
+ # The above command will probably install the typing backport because of pydoc-markdown,
+ # so we have to uninstall it again.
+ pip uninstall -y typing
# Now install apex.
grep -E 'NVIDIA/apex\.git' dev-requirements.txt | pip install --upgrade -r /dev/stdin
