Python project using protocol buffers, Deployment issues
问题 I have a Python project that uses setuptools for deployment and I mostly followed this guide regarding project structure. The project uses Google Protocol Buffers to define a network message format. My main issue is how to make setup.py call the protoc-compiler during installation to build the definitions into a _pb2.py file. In this question the advice was given to just distribute the resulting _pb2.py files along with the project. While this might work for very similar platforms, I've found