Skip to content

Commit d277f4d

Browse files
committed
Fix non-windows build backend
Signed-off-by: Pierre R. Mai <pmai@pmsf.de>
1 parent 8027462 commit d277f4d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build-backend/protoc_backend.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ def _generate_python_files(package_name):
6464
)
6565

6666
# Run protoc
67+
proto_files = glob.glob(package_name + "/*.proto")
68+
if not proto_files:
69+
raise RuntimeError("No .proto files found in the package directory. Aborting build.")
6770
subprocess.check_call(
68-
[PROTOC_EXE, "--python_out=.", "--pyi_out=.", package_name + "/*.proto"]
71+
[PROTOC_EXE, "--python_out=.", "--pyi_out=."] + proto_files,
6972
)
7073

7174
# Write __init__.py

0 commit comments

Comments
 (0)