summaryrefslogtreecommitdiff
path: root/devel/py-protobuf-compiler/files/patch-protobuf__compiler_main.py
blob: 75833d441a48caa341211b88b81bb2e4bf59ad5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- protobuf_compiler/main.py.orig	2021-02-24 09:06:33 UTC
+++ protobuf_compiler/main.py
@@ -100,7 +100,7 @@ def main():
     for f in files:
         file_name = f.split(os.path.sep)[-1]
         folder = f.replace(file_name,"").replace(input_dir + os.path.sep, "")
-        command = "python3 -m grpc_tools.protoc -I. \
+        command = "%%PYTHON_CMD%% -m grpc_tools.protoc -I. \
                                  --proto_path=" + input_dir + " \
                                  --python_out=" + os.path.join(output_dir, package_name) + " \
                                  --grpc_python_out=" + os.path.join(output_dir, package_name) + " \
@@ -130,7 +130,7 @@ setup(
     description=''
 )
         """)
-    command = "cd " + os.path.join(output_dir, package_name) + " && python3 setup.py sdist"
+    command = "cd " + os.path.join(output_dir, package_name) + " && %%PYTHON_CMD%% setup.py sdist"
     out = os.system(command)
     # print(out)
     if args.repository != '':