Explorar o código

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

kenton@google.com %!s(int64=16) %!d(string=hai) anos
pai
achega
4152d554c4
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      python/setup.py

+ 2 - 0
python/setup.py

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