Skip to content

Commit

Permalink
Add pyi_out option to protoc command in the setup.py
Browse files Browse the repository at this point in the history
Signed-off-by: ClemensLinnhoff <clemens.linnhoff@partner.bmw.de>
  • Loading branch information
ClemensLinnhoff committed Jun 6, 2024
1 parent 2c3953b commit 5ac3985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 5ac3985

Please sign in to comment.