Exemple #1
0
    def run(self):
        if self.all:
            self.clean_tests()
            self.clean_docs()
            self.clean_man()

        clean.run(self)
Exemple #2
0
 def run(self):
     _clean.run(self)
     for dir_ in (cmaker.CMAKE_INSTALL_DIR,
                  cmaker.CMAKE_BUILD_DIR,
                  cmaker.SKBUILD_DIR):
         log.info("removing '%s'", dir_)
         if not self.dry_run:
             rmtree(dir_)
Exemple #3
0
 def run(self):
     try:
         for f in glob(
                 os.path.join('pyhsmm', '**',
                              '*.so')):  # not recursive before Python 3.5
             os.remove(f)
     except:
         warn('Failed to remove all object files')
     finally:
         _clean.run(self)
Exemple #4
0
 def run(self):
     CleanCommand.run(self)
     delete_in_root = ["build", ".cache", "dist", ".eggs", "*.egg-info", ".tox"]
     delete_everywhere = ["__pycache__", "*.pyc"]
     for candidate in delete_in_root:
         rmtree_glob(candidate)
     for visible_dir in glob("[A-Za-z0-9]*"):
         for candidate in delete_everywhere:
             rmtree_glob(join(visible_dir, candidate))
             rmtree_glob(join(visible_dir, "*", candidate))
Exemple #5
0
    def run(self):
        clean_command.run(self)
        delete_in_root = [
            'build', 'dist', '*.egg-info', '.tox', '.eggs', '.cache'
        ]
        delete_everywhere = ['__pycache__', '*.pyc']

        for candidate in delete_in_root:
            rmtree_glob(candidate)

        for visible_dir in glob("[A-Za-z0-9]*"):
            for candidate in delete_everywhere:
                rmtree_glob(os.path.join(visible_dir, candidate))
                rmtree_glob(os.path.join(visible_dir, "*", candidate))