1. Andrew Godwin
  2. protobuf

Commits

ken...@google.com@630680e5-0e50-0410-840e-4b1c322b438d  committed 33aefe9

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

  • Participants
  • Parent commits 92a6261
  • Branches default

Comments (0)

Files changed (1)

File python/setup.py

View file
  • Ignore whitespace
 # 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")