Эх сурвалжийг харах

Handle .exe extension when looking for protoc in setup.py.

kenton@google.com 16 жил өмнө
parent
commit
4152d554c4
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      python/setup.py

+ 2 - 0
python/setup.py

@@ -18,6 +18,8 @@ maintainer_email = "protobuf@googlegroups.com"
 # Find the Protocol Compiler.
 # Find the Protocol Compiler.
 if os.path.exists("../src/protoc"):
 if os.path.exists("../src/protoc"):
   protoc = "../src/protoc"
   protoc = "../src/protoc"
+elif os.path.exists("../src/protoc.exe"):
+  protoc = "../src/protoc.exe"
 else:
 else:
   protoc = find_executable("protoc")
   protoc = find_executable("protoc")