From 5ac398597d8a3aa1ef8fc0905fa08d4514838925 Mon Sep 17 00:00:00 2001 From: ClemensLinnhoff Date: Thu, 6 Jun 2024 14:16:16 +0200 Subject: [PATCH 1/2] Add pyi_out option to protoc command in the setup.py Signed-off-by: ClemensLinnhoff --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5a310a8b3..2e87680a3 100644 --- a/setup.py +++ b/setup.py @@ -116,7 +116,7 @@ def generate(self): for source in self.osi_files: sys.stdout.write("Protobuf-compiling " + source + "\n") source_path = os.path.join(package_name, source) - subprocess.check_call([self.find_protoc(), "--python_out=.", source_path]) + subprocess.check_call([self.find_protoc(), "--python_out=.", "--pyi_out=.", source_path]) def maybe_generate(self): if os.path.exists("osi_version.proto.in"): From 68c93fbc190e9092884b6fc674581fbfb4029526 Mon Sep 17 00:00:00 2001 From: ClemensLinnhoff Date: Thu, 6 Jun 2024 14:20:14 +0200 Subject: [PATCH 2/2] Formatting Signed-off-by: ClemensLinnhoff --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2e87680a3..ea0e93eba 100644 --- a/setup.py +++ b/setup.py @@ -116,7 +116,9 @@ def generate(self): for source in self.osi_files: sys.stdout.write("Protobuf-compiling " + source + "\n") source_path = os.path.join(package_name, source) - subprocess.check_call([self.find_protoc(), "--python_out=.", "--pyi_out=.", source_path]) + subprocess.check_call( + [self.find_protoc(), "--python_out=.", "--pyi_out=.", source_path] + ) def maybe_generate(self): if os.path.exists("osi_version.proto.in"):