cpp-pm / hunter

CMake driven cross-platform package manager for C/C++.
BSD 2-Clause "Simplified" License
612 stars 181 forks source link

Add python interface to Protobuf #66

Open hjmallon opened 5 years ago

hjmallon commented 5 years ago

I am in a position where I could do with the Python (as well as the C++) interface included in the hunter version of Protobuf. brew install protobuf includes the python bindings too for example, see here.

I am not an expert in Python so I am not clear on the exact stages to this but I think we have a few options:


I posted this on Gitter too (thought an issue might be better).

bkotzz commented 4 years ago

I feel like the second option is the way to go - and we could have a certain version of protobuf that includes the python bindings.

When you say the bindings, I assume you mean the runtime library and not the compiler? Is there something here that you can’t get by installing the equivalent version from https://pypi.org/project/protobuf/?

hjmallon commented 4 years ago

When you say the bindings, I assume you mean the runtime library and not the compiler? Is there something here that you can’t get by installing the equivalent version from https://pypi.org/project/protobuf/?

Yep, I want the python bindings (as in the pypi package) at the same protobuf version as hunter is providing.

bkotzz commented 4 years ago

Got it. I’m just mentioning that every protobuf release is generally in pypi so you can probably find the same version there.

But if you’re interested in doing this, it will probably be easiest to make a new branch in the fork, make the required changes there, and then publish it as a separate release (ex. 3.10.0-with-py).

Also, if it’s easy to add the language runtime for all languages at once it may be worth doing that, instead of just python.