diff options
Diffstat (limited to 'python/setup.py')
-rwxr-xr-x | python/setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/setup.py b/python/setup.py index 228b00b3..a1365fba 100755 --- a/python/setup.py +++ b/python/setup.py @@ -87,6 +87,10 @@ def generate_proto(source): def GenerateUnittestProtos(): + # Unittest protos are only needed for development. + if not os.path.exists("../.git"): + return + generate_proto("../src/google/protobuf/unittest.proto") generate_proto("../src/google/protobuf/unittest_custom_options.proto") generate_proto("../src/google/protobuf/unittest_import.proto") |