浏览代码

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

kenton@google.com 16 年之前
父节点
当前提交
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.
 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")