From bbf317e386a0fed45ce631b92ffb50ee3ce745d3 Mon Sep 17 00:00:00 2001 From: Bill Little Date: Thu, 8 Sep 2022 08:46:40 +0100 Subject: [PATCH] purge unused setup clean_source custom command --- setup.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/setup.py b/setup.py index c7438ee698..3a518b959e 100644 --- a/setup.py +++ b/setup.py @@ -48,20 +48,6 @@ def run(self): pass -class CleanSource(BaseCommand): - description = "clean orphaned pyc/pyo files from the source directory" - - def run(self): - for root_path, dir_names, file_names in os.walk("lib"): - for file_name in file_names: - if file_name.endswith("pyc") or file_name.endswith("pyo"): - compiled_path = os.path.join(root_path, file_name) - source_path = compiled_path[:-1] - if not os.path.exists(source_path): - print("Cleaning", compiled_path) - os.remove(compiled_path) - - def copy_copyright(cmd, directory): # Copy the COPYRIGHT information into the package root iris_build_dir = os.path.join(directory, "iris") @@ -116,7 +102,6 @@ def run(self): [build_std_names], help_doc="generate CF standard name module", ), - "clean_source": CleanSource, }