pip install brotli return a deprecation warning #433

Open
opened 2026-01-29 20:43:47 +00:00 by claunia · 3 comments
Owner

Originally created by @yota-code on GitHub (Oct 16, 2022).

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

  • raspberrypi3 with raspbian 10
  • python-3.10.8
  • pip 22.3
Originally created by @yota-code on GitHub (Oct 16, 2022). 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 - raspberrypi3 with raspbian 10 - python-3.10.8 - pip 22.3
Author
Owner

@sk0x1234 commented on GitHub (Nov 18, 2022):

Failing on python version 3.11+.

@sk0x1234 commented on GitHub (Nov 18, 2022): Failing on python version 3.11+.
Author
Owner

@anthrotype commented on GitHub (Nov 21, 2022):

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.

@anthrotype commented on GitHub (Nov 21, 2022): 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.
Author
Owner

@gamer191 commented on GitHub (Jan 11, 2023):

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

@gamer191 commented on GitHub (Jan 11, 2023): @anthrotype Any idea when a new upstream release will be made?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#433