def clean(self, scm, dist): term.green("Removing bytecode files...") for filename in shell.dirs('.', '__pycache__'): shell.rm_rf(filename) for filename in shell.files('.', '*.py[co]'): shell.rm(filename) for filename in shell.files('.', '*$py.class'): shell.rm(filename)
def clean(self, scm, dist): term.green("Removing python byte code...") for name in shell.dirs('.', '__pycache__'): shell.rm_rf(name) for name in shell.files('.', '*.py[co]'): shell.rm(name) term.green("Removing c extensions...") for name in shell.files('.', '*.so'): shell.rm(name) for name in shell.files('.', '*.pyd'): shell.rm(name) shell.rm_rf(self.dirs['build'])
def clean(self, scm, dist): term.green("Removing python byte code...") for name in shell.dirs('.', '__pycache__'): shell.rm_rf(name) for name in shell.files('.', '*.py[co]'): shell.rm(name) for name in shell.files('.', '*$py.class'): shell.rm(name) term.green("Removing c extensions...") for name in shell.files('.', '*.so'): shell.rm(name) for name in shell.files('.', '*.pyd'): shell.rm(name) shell.rm_rf(self.dirs['build'])
def clean(self, scm, dist): term.green("Removing python byte code...") for name in shell.dirs(".", "__pycache__"): shell.rm_rf(name) for name in shell.files(".", "*.py[co]"): shell.rm(name) for name in shell.files(".", "*$py.class"): shell.rm(name) term.green("Removing c extensions...") for name in shell.files(".", "*.so"): shell.rm(name) for name in shell.files(".", "*.pyd"): shell.rm(name) shell.rm_rf(self.dirs["build"])