anoopkunchukuttan / indic_nlp_library

Resources and tools for Indian language Natural Language Processing
http://anoopkunchukuttan.github.io/indic_nlp_library/
MIT License
546 stars 158 forks source link

make sphinx an optional dependency #56

Open gwenzek opened 2 years ago

gwenzek commented 2 years ago

Hi, thanks for this great library.

With this PR users will get faster installation speed..

I noticed that during the installation, indicnlp is pulling sphinx and a lot of modules which are only needed for working on the documentation, not for using the library itself. I recommend marking those depencies as "extra". To install them you'll only need to run pip install -e '.[dev]' to install the library locally and work on the documentation. Note that doing pip install -e . works better with python virtual environments than modifying PYTHONPATH.