phfaist / pylatexenc

Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion
https://pylatexenc.readthedocs.io
MIT License
301 stars 37 forks source link

Deprecation warning upon installation via pip #92

Closed sw-dbrown closed 1 year ago

sw-dbrown commented 1 year ago

When installing pylatexenc via pip in a fresh virtual environment, the following warning is displayed:

/tmp ❯❯❯ python3 -m venv venv
/tmp ❯❯❯ source venv/bin/activate
(venv) /tmp ❯❯❯ pip3 install pylatexenc
Collecting pylatexenc
  Using cached pylatexenc-2.10.tar.gz (162 kB)
  Preparing metadata (setup.py) ... done
Installing collected packages: pylatexenc
  DEPRECATION: pylatexenc is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for pylatexenc ... done
Successfully installed pylatexenc-2.10

Python and pip versions:

(venv) /tmp ❯❯❯ pip -V
pip 22.3 from /tmp/venv/lib/python3.10/site-packages/pip (python 3.10)
phfaist commented 1 year ago

Thanks. This issue should be fixed in the upcoming pylatexenc 3.