From b7610f129df84d7f823f64d5dce9bfa1578cf49e Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Tue, 22 Dec 2015 14:36:04 -0800 Subject: Add missing files to EXTRA_DIST. Also delete some unused files. --- python/setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python/setup.py') 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: -- cgit v1.2.3