      stdout, stderr = chk.communicate()
      if stderr:
          return False, stderr
      lines = [re.sub(" +", " ", line.strip())
               for line in stdout.decode().splitlines()
               if line.strip()]
      stdout = lines[1]
      location = stdout[:stdout.rfind(" ")] + "bin"
      out_info("CMake not found in %PATH%. Temporarily adding: \"{}\"".format(location))
      os.environ["PATH"] += ";{}".format(location)
 
</s> remove     stdout = stdout.decode()
 </s> add     stdout = stdout.decode(ENCODING) </s> remove            for line in stdout.decode().splitlines()
 </s> add            for line in stdout.decode(ENCODING).splitlines() </s> remove            for line in stdout.decode().splitlines()
 </s> add            for line in stdout.decode(ENCODING).splitlines() </s> remove              for line in stdout.decode().splitlines()
 </s> add              for line in stdout.decode(ENCODING).splitlines() </s> remove     installed = chk.communicate()[0].decode().splitlines()
 </s> add     installed = chk.communicate()[0].decode(ENCODING).splitlines()
             for line in stdout.decode(ENCODING).splitlines()
      stdout, stderr = chk.communicate()
      if stderr:
          return False, stderr
      lines = [re.sub(" +", " ", line.strip())
             for line in stdout.decode(ENCODING).splitlines()
               if line.strip()]
      stdout = lines[1]
      location = stdout[:stdout.rfind(" ")] + "bin"
      out_info("CMake not found in %PATH%. Temporarily adding: \"{}\"".format(location))
      os.environ["PATH"] += ";{}".format(location)
keep keep keep keep replace keep keep keep keep keep
 setup.py - Get system encoding 
setup.py