message: cuda_configure: fix quoting issue if paths contain spaces
diff: @@ -472,11 +472,14 @@ def _check_cuda_libs(repository_ctx, script_path, libs):
  cmd += "f.write('%s' + linesep);" % line
  cmd += "f.close();"
  cmd += "from os import system;"
  - args = " ".join([path + " " + str(check) for path, check in libs])
  + args = " ".join(["\"" + path + "\" " + str(check) for path, check in libs])
  cmd += "system('%s script.py %s');" % (python_bin, args)
  all_paths = [path for path, _ in libs]
  checked_paths = execute(repository_ctx, [python_bin, "-c", cmd]).stdout.splitlines()
  +
  + # Filter out empty lines from splitting on '\r\n' on Windows
  + checked_paths = [path for path in checked_paths if len(path) > 0]
  if all_paths != checked_paths:
  auto_configure_fail("Error with installed CUDA libs. Expected '%s'. Actual '%s'." % (all_paths, checked_paths))
  