fujimotos / polyleven

Fast Levenshtein Distance Library for Python 3
https://ceptord.net
MIT License
80 stars 10 forks source link

Deprecation Warning: Legacy 'setup.py install' Method #12

Open filipre opened 1 year ago

filipre commented 1 year ago

Hi,

I'm getting following deprecation warning during the installation. It looks like there will be a breaking change in pip 23.1:

Collecting polyleven
  Downloading polyleven-0.8.tar.gz (6.4 kB)
  Preparing metadata (setup.py) ... done
Installing collected packages: polyleven
  DEPRECATION: polyleven 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 polyleven ... done
Successfully installed polyleven-0.8

[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: pip install --upgrade pip

Best!

fujimotos commented 1 year ago

@filipre Thank you for reporitng!

I think the particular warning message will disappear once you install wheel package as your error message suggested:

$ pip install wheel
$ pip install polyleven

Note: it seems like time is coming to migrate to pyproject.toml. I'm going to find some time and update the project.