python module: building against system Brotli #401

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

Originally created by @TinfoilSubmarine on GitHub (Oct 13, 2021).

I'm trying to package this python library for Void Linux and I noticed that instead of using the brotli available and installed on my system, the module builds it's own shared library. Is there a way to make the python module just wrap the already available system library?

Originally created by @TinfoilSubmarine on GitHub (Oct 13, 2021). I'm trying to package this python library for Void Linux and I noticed that instead of using the brotli available and installed on my system, the module builds it's own shared library. Is there a way to make the python module just wrap the already available system library?
claunia added the enhancement label 2026-01-29 20:43:16 +00:00
Author
Owner

@TinfoilSubmarine commented on GitHub (Oct 22, 2021):

To answer my own question, yes it is possible, using a patch like this. I used this in my pull request over in void-packages: https://github.com/void-linux/void-packages/pull/33394
use-system-brotli.txt

@TinfoilSubmarine commented on GitHub (Oct 22, 2021): To answer my own question, yes it is possible, using a patch like this. I used this in my pull request over in void-packages: https://github.com/void-linux/void-packages/pull/33394 [use-system-brotli.txt](https://github.com/google/brotli/files/7397111/use-system-brotli.txt)
Author
Owner

@eustas commented on GitHub (Jan 6, 2023):

Cool, thanks for investigating. Likely will add a flag to setup.py for using system brotli!

@eustas commented on GitHub (Jan 6, 2023): Cool, thanks for investigating. Likely will add a flag to `setup.py` for using system brotli!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#401