CZ-NIC / setuptools-grpc

Setuptools module for building protobuf and grpc service python modules.
GNU General Public License v3.0
5 stars 1 forks source link

Configuration problem #8

Closed Utosz closed 11 months ago

Utosz commented 11 months ago

Hi, i have question/problem. Im trying to use setuptools-grpc for bit denser proto files/folders structure.

My grpc structure looks like that and it is in root of project's directory image so i have .proto files for different services and its messages in specific directories.

My setup.cfg looks like that: image and when im using a tool for this config it is failing.

I debug a code and i found that filename created from glob are scalped from first character, so im getting list of files like that: image

this prints are from finalize_options(): image

The question is: why do we have this +1 in index for filename? If i remove it, it works correctly and proper package is built. Should setup.cfg be set differently for my or its a bug?

stinovlas commented 11 months ago

The question is: why do we have this +1 in index for filename? If i remove it, it works correctly and proper package is built. Should setup.cfg be set differently for my or its a bug?

Hi! Thanks for raising the issue. I believe that the +1 is there to include trailing slash. Try setting grpc_path = ./grpc (without trailing slash). Does that fix your problem?

It's not a very elegant solution indeed. I'll try to devise something more elegant (stripping the proto_path prefix), but in the meantime setting grpc_path without trailing slash should be a viable workaround.

Utosz commented 11 months ago

Thanks, it works!