Skip to content

Commit

Permalink
purge unused setup clean_source custom command (SciTools#4949)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle authored and pp-mo committed Sep 26, 2022
1 parent 5e6dbff commit 9927da4
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,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")
Expand Down Expand Up @@ -90,7 +76,6 @@ def run(self):
[build_std_names],
help_doc="generate CF standard name module",
),
"clean_source": CleanSource,
}


Expand Down

0 comments on commit 9927da4

Please sign in to comment.