Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
    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'])
Beispiel #4
0
    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'])
Beispiel #5
0
    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"])