google / brotli

Brotli compression format
MIT License
13.55k stars 1.24k forks source link

`pip install brotli` return a deprecation warning #981

Open yota-code opened 2 years ago

yota-code commented 2 years ago

For an install (here on a raspberrypi) of brotli 1.0.9 I got a warning from pip which says:

DEPRECATION: brotli 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

sk0x1234 commented 1 year ago

Failing on python version 3.11+.

anthrotype commented 1 year ago

it should have been fixed on main branch with https://github.com/google/brotli/pull/987, however we will need a new tagged release for that trickle down to the python source distribution (sdist) package. The brotli python package's version (as defined in setup.py) is the same as the main brotli C library version from common/version.h header. The sdist is built and deployed to PyPI from this other github repository, https://github.com/google/brotli-wheels. Once a new upstream brotli release is made, we can build updated sdist and wheel packages.

Last weeek we also published pre-compiled wheels of Brotli v1.0.9 for Python 3.11 for all major operating systems and architectures, though I am not sure those cover the OP's environment ("raspberrypi3 with raspbian 10").

Maybe try again to pip install brotli and see if pip this time downloads a pre-compiled wheel.

gamer191 commented 1 year ago

@anthrotype Any idea when a new upstream release will be made?