소스 검색

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")