parameters: ()
docstring: remove all build/generated bits
docstring_summary: remove all build/generated bits
docstring_tokens: remove all build / generated bits
function: def target_clean():
      """remove all build/generated bits"""
      log.info("target: clean")
      if sys.platform == "win32":
          _run("nmake -f Makefile.win clean")
  
      ver = _get_project_version()
      dirs = ["dist", "build", "%s-%s" % (_project_name_, ver)]
      for d in dirs:
          print "removing '%s'" % d
          if os.path.isdir(d): _rmtree(d)
  
      patterns = ["*.pyc", "*~", "MANIFEST",
                  os.path.join("test", "*~"),
                  os.path.join("test", "*.pyc"),
                 ]
      for pattern in patterns:
          for file in glob.glob(pattern):
              print "removing '%s'" % file
              os.unlink(file)
function_tokens: def target_clean ( ) : log . info ( "target: clean" ) if sys . platform == "win32" : _run ( "nmake -f Makefile.win clean" ) ver = _get_project_version ( ) dirs = [ "dist" , "build" , "%s-%s" % ( _project_name_ , ver ) ] for d in dirs : print "removing '%s'" % d if os . path . isdir ( d ) : _rmtree ( d ) patterns = [ "*.pyc" , "*~" , "MANIFEST" , os . path . join ( "test" , "*~" ) , os . path . join ( "test" , "*.pyc" ) , ] for pattern in patterns : for file in glob . glob ( pattern ) : print "removing '%s'" % file os . unlink ( file )