diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/google/protobuf/util/__init__.py | 0 | ||||
-rwxr-xr-x | python/setup.py | 5 |
2 files changed, 3 insertions, 2 deletions
diff --git a/python/google/protobuf/util/__init__.py b/python/google/protobuf/util/__init__.py deleted file mode 100644 index e69de29b..00000000 --- a/python/google/protobuf/util/__init__.py +++ /dev/null diff --git a/python/setup.py b/python/setup.py index 22f6e816..1e71a702 100755 --- a/python/setup.py +++ b/python/setup.py @@ -114,7 +114,8 @@ class clean(_clean): filepath = os.path.join(dirpath, filename) if filepath.endswith("_pb2.py") or filepath.endswith(".pyc") or \ filepath.endswith(".so") or filepath.endswith(".o") or \ - filepath.endswith('google/protobuf/compiler/__init__.py'): + filepath.endswith('google/protobuf/compiler/__init__.py') or \ + filepath.endswith('google/protobuf/util/__init__.py'): os.remove(filepath) # _clean is an old-style class, so super() doesn't work. _clean.run(self) @@ -137,7 +138,7 @@ class build_py(_build_py): GenerateUnittestProtos() # Make sure google.protobuf/** are valid packages. - for path in ['', 'internal/', 'compiler/', 'pyext/']: + for path in ['', 'internal/', 'compiler/', 'pyext/', 'util/']: try: open('google/protobuf/%s__init__.py' % path, 'a').close() except EnvironmentError: |