mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
Honor CXXFLAGS when building python module #351
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ryandesign on GitHub (Oct 6, 2020).
Hi. Parts of the brotli python module are written in C++. When compiling that part, the contents of environment variable CXXFLAGS should be passed to the compiler. setuptools does not support modules written in C++ so you have to hack in support manually (or help the setuptools folks fix it on their end, if you're able).
My preliminary fix is here:
b21a2cbb0d/python/py-brotli/files/CXXFLAGS.patchIt may not be fully correct but it was good enough for me on macOS.
@ghost commented on GitHub (Oct 17, 2020):
I submitted PR https://github.com/google/brotli/pull/856, it removes C++ code, and brings a performance optimization.
@eustas commented on GitHub (Jan 18, 2021):
Looks cool. Will review and land soon. Thanks!
@eustas commented on GitHub (Jan 6, 2023):
Thanks again. Landed.